Skip to content

Commit 33a8b71

Browse files
committed
add basic function to buttons
1 parent e233399 commit 33a8b71

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

frontend-vue/src/views/GameView.vue

+3-2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { ConnectionService } from '@/services/ConnectionService';
55
import { ref } from 'vue';
66
77
var showMenu = ref(false);
8+
var showUsers = ref(false);
89
910
const conService = new ConnectionService();
1011
const cardService = new CardService(conService);
@@ -32,7 +33,7 @@ const cardService = new CardService(conService);
3233
<button type="button" @click="showMenu = !showMenu">
3334
<font-awesome-icon :icon="['fas', 'gear']" />
3435
</button>
35-
<button type="button">
36+
<button type="button" @click="showUsers = !showUsers">
3637
<font-awesome-icon :icon="['fas', 'users']" />
3738
</button>
3839
<button type="button">
@@ -41,7 +42,7 @@ const cardService = new CardService(conService);
4142
<button type="button">
4243
<font-awesome-icon :icon="['fas', 'dice-d20']" />
4344
</button>
44-
<button type="button">
45+
<button type="button" @click="$router.go(-1)">
4546
<font-awesome-icon :icon="['fas', 'door-closed']" />
4647
</button>
4748
</div>

0 commit comments

Comments
 (0)