Skip to content

Commit 0df7d76

Browse files
author
Alberto Iannaccone
committed
configure status subjects
1 parent 75cce81 commit 0df7d76

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/boardConfiguration.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ export default class BoardConfiguration {
4242
this.daemon = daemon;
4343
this.serialMonitorContent = '';
4444
this.configuring = new BehaviorSubject({ status: this.CONFIGURE_NOPE });
45-
45+
this.configureDone = this.configuring.pipe(filter(configure => configure.status === this.CONFIGURE_DONE));
46+
this.configureInProgress = this.configuring.pipe(filter(configure => configure.status === this.CONFIGURE_IN_PROGRESS));
47+
this.configureError = this.configuring.pipe(filter(configure => configure.status === this.CONFIGURE_ERROR));
4648
this.daemon.serialMonitorMessages.subscribe(message => {
4749
this.serialMonitorContent += message;
4850
});

0 commit comments

Comments
 (0)