Skip to content
Snippets Groups Projects
Commit 5f195d68 authored by Henrik Askjer's avatar Henrik Askjer
Browse files

wip

parent ad7b529a
No related branches found
No related tags found
No related merge requests found
...@@ -22,8 +22,8 @@ ...@@ -22,8 +22,8 @@
<v-container fluid><v-row align="center" justify="space-between"> <v-container fluid><v-row align="center" justify="space-between">
<v-col><v-subheader>Visningsspråk</v-subheader> <v-col><v-subheader>Visningsspråk</v-subheader>
<v-select rounded <v-select rounded
v-value="$store.state.currentLocale" :value="$store.state.currentLocale"
@submit="changeLocale" @input="changeLocale"
prepend-inner-icon="language" prepend-inner-icon="language"
outlined outlined
:items="locales" :items="locales"
...@@ -48,6 +48,8 @@ ...@@ -48,6 +48,8 @@
></v-checkbox> ></v-checkbox>
</v-col> </v-row> </v-col> </v-row>
</v-container> </v-container>
<v-btn rounded light>Tilbakestill</v-btn>
<v-btn>Lukk</v-btn>
</v-card> </v-card>
</template> </template>
...@@ -57,8 +59,7 @@ export default { ...@@ -57,8 +59,7 @@ export default {
name: "Menu", name: "Menu",
data () { data () {
return { return {
locales: [{text: "bokmål", value: "nob"}, {text: "nynorsk", value: "nno"}, {text:"english", value: "eng"}] locales: [{text: "norsk (bokmål)", value: "nob"}, {text: "norsk (nynorsk)", value: "nno"}, {text:"english", value: "eng"}]
} }
}, },
computed: { computed: {
...@@ -77,6 +78,7 @@ export default { ...@@ -77,6 +78,7 @@ export default {
set () { this.$store.commit("toggleInflectionNo") set () { this.$store.commit("toggleInflectionNo")
} }
}, },
}, },
methods: { methods: {
changeLocale: function(event) { changeLocale: function(event) {
......
...@@ -31,7 +31,7 @@ const store = new Vuex.Store({ ...@@ -31,7 +31,7 @@ const store = new Vuex.Store({
state.showSearchToolbar = localStorage.getItem('showSearchToolbar') || false state.showSearchToolbar = localStorage.getItem('showSearchToolbar') || false
state.showHGNO = localStorage.getItem('showHGNO') || false state.showHGNO = localStorage.getItem('showHGNO') || false
state.showInflectionNo = localStorage.getItem('showInflectionNo') || false state.showInflectionNo = localStorage.getItem('showInflectionNo') || false
state.currentLocale = localStorage.getItem('currentLocale') || false state.currentLocale = localStorage.getItem('currentLocale') || {text:"nob", value: "nob"}
}, },
changeLocale(state, locale) { changeLocale(state, locale) {
state.currentLocale = locale state.currentLocale = locale
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment