Skip to content

Commit 4ed4ec8

Browse files
committed
Bugfix: Add missing change types to UI
1 parent b339284 commit 4ed4ec8

File tree

1 file changed

+20
-4
lines changed

1 file changed

+20
-4
lines changed

src/components/protocol/ProtocolTable.vue

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,14 @@
119119
return entry.change.yellowCardOver.forTeam;
120120
case 'addGameEvent':
121121
return this.gameEventDetails(entry.change.addGameEvent.gameEvent).byTeam;
122+
case 'addPassiveGameEvent':
123+
return this.gameEventDetails(entry.change.addPassiveGameEvent.gameEvent).byTeam;
122124
case 'addProposedGameEvent':
123125
return this.gameEventDetails(entry.change.addProposedGameEvent.gameEvent).byTeam;
124126
case 'updateTeamState':
125127
return entry.change.updateTeamState.forTeam;
128+
case 'newGameState':
129+
return entry.change.newGameState.gameState.forTeam;
126130
default:
127131
return undefined;
128132
}
@@ -133,6 +137,8 @@
133137
return 'terminal';
134138
case 'changeStage':
135139
return 'gavel';
140+
case 'setBallPlacementPos':
141+
return 'futbol';
136142
case 'addYellowCard':
137143
return 'chess-board';
138144
case 'addRedCard':
@@ -141,12 +147,12 @@
141147
return 'clock';
142148
case 'addGameEvent':
143149
return 'exclamation-triangle';
150+
case 'addPassiveGameEvent':
151+
return 'exclamation-triangle';
144152
case 'addProposedGameEvent':
145153
return 'recycle';
146154
case 'startBallPlacement':
147155
return 'futbol';
148-
case 'setBallPlacementPos':
149-
return 'futbol';
150156
case 'continue':
151157
return 'bullhorn';
152158
case 'updateConfig':
@@ -157,6 +163,10 @@
157163
return 'edit';
158164
case 'revert':
159165
return 'exclamation';
166+
case 'newGameState':
167+
return 'gavel';
168+
case 'acceptGameEventProposals':
169+
return 'check-circle';
160170
default:
161171
return 'question-circle';
162172
}
@@ -168,6 +178,8 @@
168178
return 'New command: ' + entry.change.newCommand.command.type;
169179
case 'changeStage':
170180
return 'New stage: ' + entry.change.changeStage.newStage;
181+
case 'setBallPlacementPos':
182+
return 'New ball placement pos';
171183
case 'addYellowCard':
172184
return 'Yellow card';
173185
case 'addRedCard':
@@ -176,12 +188,12 @@
176188
return 'Yellow card over';
177189
case 'addGameEvent':
178190
return 'New game event: ' + entry.change.addGameEvent.gameEvent.type;
191+
case 'addPassiveGameEvent':
192+
return 'New passive game event: ' + entry.change.addPassiveGameEvent.gameEvent.type;
179193
case 'addProposedGameEvent':
180194
return 'New proposed game event: ' + entry.change.addProposedGameEvent.gameEvent.type;
181195
case 'startBallPlacement':
182196
return 'Start ball placement';
183-
case 'setBallPlacementPos':
184-
return 'New ball placement pos';
185197
case 'continue':
186198
return 'Continue';
187199
case 'updateConfig':
@@ -192,6 +204,10 @@
192204
return 'Switch colors';
193205
case 'revert':
194206
return 'Revert';
207+
case 'newGameState':
208+
return 'New game state: ' + entry.change.newGameState.gameState.type;
209+
case 'acceptGameEventProposals':
210+
return 'Accept game event proposals';
195211
default:
196212
return type;
197213
}

0 commit comments

Comments
 (0)