This repository was archived by the owner on Feb 22, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +2
-1
lines changed Expand file tree Collapse file tree 3 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ export default class ClearButton extends React.PureComponent {
11
11
componentDidMount ( ) {
12
12
globalObserver . register ( 'summary.enable_clear' , ( ) => this . setState ( { isButtonDisabled : false } ) ) ;
13
13
globalObserver . register ( 'summary.disable_clear' , ( ) => this . setState ( { isButtonDisabled : true } ) ) ;
14
+ globalObserver . register ( 'bot.running' , ( ) => this . setState ( { isButtonDisabled : true } ) ) ;
14
15
}
15
16
// eslint-disable-next-line class-methods-use-this
16
17
confirmClearLog ( ) {
Original file line number Diff line number Diff line change @@ -67,6 +67,7 @@ class AnimateTrade extends Component {
67
67
indicatorMessage : this . indicatorMessages . starting ,
68
68
stopMessage : this . indicatorMessages . stopped ,
69
69
} ) ;
70
+ globalObserver . emit ( 'summary.disable_clear' ) ;
70
71
globalObserver . register ( 'contract.status' , contractStatus => {
71
72
this . animateStage ( contractStatus ) ;
72
73
} ) ;
Original file line number Diff line number Diff line change @@ -534,7 +534,6 @@ export default class View {
534
534
elStopButton . style . display = 'inline-block' ;
535
535
} ) ;
536
536
537
- globalObserver . emit ( 'summary.disable_clear' ) ;
538
537
showSummary ( ) ;
539
538
this . blockly . run ( limitations ) ;
540
539
} ;
You can’t perform that action at this time.
0 commit comments