From 908080cde617fa4c78e416c41e357674fa15c401 Mon Sep 17 00:00:00 2001 From: Settel Date: Tue, 15 Mar 2022 07:32:24 +0100 Subject: [PATCH] feat: logout button for gamemasters/admins --- client/src/components/GameControls.vue | 10 ++++++++++ 1 file changed, 10 insertions(+) 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; + } }