Skip to content

Commit 54bcd83

Browse files
committed
[feature] Add readyToContinue flag to UI
1 parent 5d9b8af commit 54bcd83

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

src/components/control/ControlFlowBar.vue

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,22 @@
2424
</span>
2525
</b-button>
2626
</div>
27+
28+
<div v-for="autoRefId of autoRefs" v-if="autoRefReady(autoRefId) !== undefined" class="auto-ref-meta">
29+
{{autoRefId}}
30+
<font-awesome-icon
31+
v-b-tooltip.hover.d500
32+
title="Ready to continue"
33+
v-if="autoRefReady(autoRefId)"
34+
class="fa-xs"
35+
icon="check-circle"/>
36+
<font-awesome-icon
37+
v-b-tooltip.hover.d500
38+
title="Not ready to continue yet"
39+
v-else
40+
class="fa-xs"
41+
icon="times-circle"/>
42+
</div>
2743
</div>
2844
</template>
2945

@@ -40,6 +56,9 @@
4056
triggerContinue() {
4157
submitChange({continue: {}});
4258
},
59+
autoRefReady(id) {
60+
return this.$store.state.gcState.autoRefState[id].readyToContinue;
61+
}
4362
},
4463
computed: {
4564
keymapHalt() {
@@ -87,6 +106,9 @@
87106
'team-blue': this.nextCommand && this.nextCommand.forTeam === TEAM_BLUE,
88107
'team-yellow': this.nextCommand && this.nextCommand.forTeam === TEAM_YELLOW
89108
}
109+
},
110+
autoRefs() {
111+
return Object.keys(this.$store.state.gcState.autoRefState);
90112
}
91113
}
92114
}
@@ -102,4 +124,10 @@
102124
display: flex;
103125
justify-content: center;
104126
}
127+
128+
.auto-ref-meta {
129+
font-size: 1.2em;
130+
margin: auto .2em;
131+
}
132+
105133
</style>

0 commit comments

Comments
 (0)