Skip to content

Commit 15efcb8

Browse files
author
Alberto Iannaccone
committed
configure status subjects
1 parent 191d847 commit 15efcb8

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
@@ -33,7 +33,9 @@ export default class BoardConfiguration {
3333
this.daemon = daemon;
3434
this.serialMonitorContent = '';
3535
this.configuring = new BehaviorSubject({ status: this.CONFIGURE_NOPE });
36-
36+
this.configureDone = this.configuring.pipe(filter(configure => configure.status === this.CONFIGURE_DONE));
37+
this.configureInProgress = this.configuring.pipe(filter(configure => configure.status === this.CONFIGURE_IN_PROGRESS));
38+
this.configureError = this.configuring.pipe(filter(configure => configure.status === this.CONFIGURE_ERROR));
3739
this.daemon.serialMonitorMessages.subscribe(message => {
3840
this.serialMonitorContent += message;
3941
});

0 commit comments

Comments
 (0)