From 1b762a3014fcb204d6c02fe57be030aca376bb98 Mon Sep 17 00:00:00 2001
From: Henrik Askjer <henrik.askjer@uib.no>
Date: Mon, 29 Nov 2021 11:50:24 +0100
Subject: [PATCH] finish settings menu

---
 src/components/TopBar.vue | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/src/components/TopBar.vue b/src/components/TopBar.vue
index a170ec89..80aa541f 100644
--- a/src/components/TopBar.vue
+++ b/src/components/TopBar.vue
@@ -6,13 +6,19 @@
       <v-divider vertical/>
       <v-btn text width="210" v-if="false" :class="$vuetify.breakpoint.name"><v-icon left>language</v-icon>Norsk (Bokmål)<v-icon right>expand_more</v-icon></v-btn>
       <v-divider vertical/>
-      <v-menu :close-on-content-click="false">
+      <v-menu :close-on-content-click="false" v-model="settingsMenu">
           <template v-slot:activator= "{ on, attrs }">
               <v-btn v-bind="attrs" v-on="on" text width="210"><v-icon left>settings</v-icon>Instillinger<v-icon right>expand_more</v-icon></v-btn>
           </template>
           <v-card>
+              <v-card-text>
           <LocaleMenu/>
           <Settings/>
+          </v-card-text>
+                       <v-card-actions><v-spacer/>
+                      <v-btn rounded depressed @click='$store.commit("resetStore")'>Tilbakestill</v-btn>
+                      <v-btn rounded depressed @click="settingsMenu=false">{{$t("close")}}</v-btn> 
+             </v-card-actions>
           </v-card>
       
       </v-menu>
@@ -48,6 +54,7 @@ export default {
         version_label: process.env.VUE_APP_VERSION_LABEL,
         release: process.env.VUE_APP_RELEASE,
         menuDialog: false,
+        settingsMenu: false
       }
     },
     methods: {
-- 
GitLab