Skip to content

Commit ebf077b

Browse files
committed
[feature] Disable the division switch with all other control buttons
1 parent 5c892bd commit ebf077b

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

src/components/control/ControlMatch.vue

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,15 @@
3030
End of Game
3131
</b-button>
3232
<div class="divisions btn-group-toggle btn-group">
33-
<label :class="{btn:true, 'btn-secondary': true, active: isDivA}" @click="switchDivision('DivA')">Div
34-
A</label>
35-
<label :class="{btn:true, 'btn-secondary': true, active: !isDivA}" @click="switchDivision('DivB')">Div
36-
B</label>
33+
<label :class="{btn:true, 'btn-secondary': true, active: isDivA, disabled: forbidMatchControls}"
34+
@click="switchDivision('DivA')"
35+
:disabled="forbidMatchControls">
36+
Div A
37+
</label>
38+
<label :class="{btn:true, 'btn-secondary': true, active: !isDivA, disabled: forbidMatchControls}"
39+
@click="switchDivision('DivB')">
40+
Div B
41+
</label>
3742
</div>
3843
</div>
3944
</template>

0 commit comments

Comments
 (0)