🤞 finalized the monitor UI

Signed-off-by: Akos Kitta <kittaakos@typefox.io>
This commit is contained in:
Akos Kitta
2019-12-05 16:35:16 +01:00
parent 29ebf055e6
commit 8c49c04359
5 changed files with 66 additions and 49 deletions

View File

@@ -95,12 +95,12 @@ export class MonitorConnection {
}
});
// Handles the `baudRate` changes by reconnecting if required.
this.monitorModel.onChange(() => {
if (this.autoConnect && this.connected) {
this.monitorModel.onChange(({ property }) => {
if (property === 'baudRate' && this.autoConnect && this.connected) {
const { boardsConfig } = this.boardsServiceClient;
this.handleBoardConfigChange(boardsConfig);
}
})
});
}
get connected(): boolean {