We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6212775 commit 0786ad9Copy full SHA for 0786ad9
games-vue-client/src/components/games/Hanabi.vue
@@ -93,6 +93,9 @@
93
<h2>Actions</h2>
94
95
</v-row>
96
+ <v-snackbar v-model="snackbar">
97
+ {{text}}
98
+ </v-snackbar>
99
</v-container>
100
</template>
101
<script>
@@ -112,9 +115,22 @@ export default {
112
115
this.onAction(action, index);
113
116
}
114
117
},
118
+ watch: {
119
+ deckEmpty: function (val) {
120
+ this.snackbar = val
121
+ }
122
+ },
123
+ data: () => ({
124
+ snackbar: false,
125
+ timeout: 5000,
126
+ text: 'Last round',
127
+ }),
128
computed: {
129
myTurn() {
130
return this.view.currentPlayer == this.view.hand.index
131
132
+ deckEmpty() {
133
+ return this.view.cardsLeft == 0
134
135
136
};
0 commit comments