Skip to content

Commit 5018250

Browse files
committed
[refactoring] Remove space from division identifier
1 parent ac70a02 commit 5018250

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

config/ssl-game-controller.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ server:
99
trusted-keys-dir: config/trusted_keys/team
1010
game:
1111
yellow-card-duration: 2m
12-
default-division: Div A
12+
default-division: DivA
1313
normal:
1414
half-duration: 5m
1515
half-time-duration: 5m

internal/app/controller/state.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ func NewTeam(team refproto.Team) Team {
5353
type Division string
5454

5555
const (
56-
DivA Division = "Div A"
57-
DivB Division = "Div B"
56+
DivA Division = "DivA"
57+
DivB Division = "DivB"
5858
)
5959

6060
// Stage represents the different stages of a game

src/components/control/ControlMatch.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@
3535
End of Game
3636
</b-button>
3737
<div class="divisions btn-group-toggle btn-group">
38-
<label :class="{btn:true, 'btn-secondary': true, active: isDivA}" @click="switchDivision('Div A')">Div
38+
<label :class="{btn:true, 'btn-secondary': true, active: isDivA}" @click="switchDivision('DivA')">Div
3939
A</label>
40-
<label :class="{btn:true, 'btn-secondary': true, active: !isDivA}" @click="switchDivision('Div B')">Div
40+
<label :class="{btn:true, 'btn-secondary': true, active: !isDivA}" @click="switchDivision('DivB')">Div
4141
B</label>
4242
</div>
4343
</div>
@@ -48,7 +48,7 @@
4848
name: "ControlMatch",
4949
data() {
5050
return {
51-
selected: 'Div A',
51+
selected: 'DivA',
5252
}
5353
},
5454
methods: {
@@ -98,7 +98,7 @@
9898
return this.$store.state.refBoxState
9999
},
100100
isDivA() {
101-
return this.$store.state.refBoxState.division === 'Div A';
101+
return this.$store.state.refBoxState.division === 'DivA';
102102
},
103103
halted() {
104104
return this.state.command === 'halt';

src/store.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export class RefBoxState {
2727
stageTimeLeft = 0;
2828
matchDuration = 0;
2929
teamState = {'Yellow': new TeamState(), 'Blue': new TeamState()};
30-
division = 'Div A';
30+
division = 'DivA';
3131
}
3232

3333
export default new Vuex.Store({

0 commit comments

Comments
 (0)