Newer
Older
<template>
<v-card>
<v-toolbar dark color="primary">
<v-toolbar-title>Meny</v-toolbar-title><v-spacer></v-spacer>
<v-toolbar-items>
<v-btn
dark
text
>
Tilbakestill
</v-btn>
<v-btn
dark
text
>
Lukk
</v-btn>
</v-toolbar-items>
</v-toolbar>
<v-container fluid><v-row align="center" justify="space-between">
<v-col><v-subheader>Visningsspråk</v-subheader>
<v-select rounded
prepend-inner-icon="language"
outlined
:items="locales"
dense>
</v-select></v-col>
</v-row><v-row align="center"><v-col>
label="Vis verktøylinje for søkealternativer"
hide-details
></v-checkbox>
<v-checkbox
v-model="toggleHGNO"
label="Vis homografnumre"
hide-details
></v-checkbox>
<v-checkbox
v-model="toggleInflectionNo"
label="Bis bøyningsnumre"
</v-list>
</v-card-text>
<v-card-actions><v-spacer/>
<v-btn rounded depressed @click='resetStore'>Tilbakestill</v-btn>
<v-btn rounded depressed @click="$emit('close')">Lukk</v-btn>
</v-card-actions>
</v-card>
</template>
<script>
export default {
name: "Menu",
locales: [{text: "norsk (bokmål)", value: "nob"}, {text: "norsk (nynorsk)", value: "nno"}, {text:"english", value: "eng"}]
get () { return this.$store.state.showSearchToolbar},
set () { this.$store.commit("toggleSearchToolbar")
},
toggleHGNO: {
get () { return this.$store.state.showHGNO},
set () { this.$store.commit("toggleHGNO")
}
},
toggleInflectionNo: {
get () { return this.$store.state.showInflectionNo},
set () { this.$store.commit("toggleInflectionNo")
}
},
},
methods: {
changeLocale: function(event) {
console.log(event)
},
resetStore: function() {
this.$store.commit("resetStore")