File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
internal/app/statemachine Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -37,8 +37,8 @@ func (s *StateMachine) processChangeContinue(newState *state.State) (changes []*
37
37
return
38
38
}
39
39
40
- if * newState .Command .Type == state .Command_HALT {
41
- log .Printf ("Continue with STOP after HALT" )
40
+ if * newState .Command .Type == state .Command_HALT || * newState . Command . Type == state . Command_TIMEOUT {
41
+ log .Printf ("Continue with STOP after %s" , newState . Command . Type . String () )
42
42
changes = append (changes , s .createCommandChange (state .NewCommandNeutral (state .Command_STOP )))
43
43
} else if newState .NextCommand != nil {
44
44
log .Printf ("Continue with next command: %v" , newState .NextCommand )
Original file line number Diff line number Diff line change 18
18
v-on:click =" triggerContinue"
19
19
v-bind:disabled =" continueDisabled" >
20
20
Continue
21
- <span v-if =" nextCommand && nextCommand.forTeam " >with</span >
21
+ <span v-if =" nextCommand && nextCommand.type " >with</span >
22
22
<span v-if =" nextCommand"
23
23
:class =" teamColorClass" >
24
24
{{ nextCommand.type }}
@@ -68,6 +68,9 @@ export default {
68
68
halted () {
69
69
return this .$store .state .matchState .command .type === ' HALT' ;
70
70
},
71
+ timeoutActive () {
72
+ return this .$store .state .matchState .command .type === ' TIMEOUT' ;
73
+ },
71
74
continueDisabled () {
72
75
return ! this .nextCommand ;
73
76
},
@@ -82,6 +85,9 @@ export default {
82
85
}
83
86
return null ;
84
87
}
88
+ if (this .timeoutActive ) {
89
+ return {type: ' STOP' }
90
+ }
85
91
if (! this .$store .state .matchState .nextCommand ) {
86
92
return null ;
87
93
}
You can’t perform that action at this time.
0 commit comments