diff --git a/client/src/components/GameControls.vue b/client/src/components/GameControls.vue index d15ac59..f3e7735 100644 --- a/client/src/components/GameControls.vue +++ b/client/src/components/GameControls.vue @@ -7,6 +7,7 @@ + @@ -40,6 +41,11 @@ export default { go(path) { this.$router.push({ path }) }, + async logout() { + this.authCode = '' + await this.$axios.$get('/api/logout') + this.go('/') + }, }, } @@ -56,5 +62,9 @@ export default { padding: 0 1rem; font-size: 18px; } + + .button-logout { + float: right; + } }