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

remove codes in dict button

parent 24be5149
No related branches found
No related tags found
No related merge requests found
......@@ -41,14 +41,19 @@
<v-menu allowOverflow: true offsetY>
<template v-slot:activator="{ on, attrs }">
<v-btn min-width="0px"
<v-btn
v-bind="attrs"
v-on="on"
plain
depressed color = "primary" text @click.native="items=[]">
small
depressed
color = "primary"
text
@click.native="items=[]">
<v-icon small left>book</v-icon>
<span v-if="!$vuetify.breakpoint.smAndDown">
{{$t(`dicts.${$parent.lang}`)}}
</span><span v-if="$vuetify.breakpoint.smAndDown">{{$parent.lang}}</span><v-icon>expand_more</v-icon></v-btn>
</span><span v-if="$vuetify.breakpoint.smAndDown">{{$t(`dicts_short.${$parent.lang}`)}}</span></v-btn>
</template>
<v-list>
<v-list-item v-for="item in ['bm,nn','bm','nn'].map(l => {return {label: $t(`dicts.${l}`), tag: l}})" :key="item.tag"
......
......@@ -10,6 +10,11 @@
"bm": "Bokmålsordboka",
"bm,nn": "ordbøkene"
},
"dicts_short": {
"nn": "nynorsk",
"bm": "bokmål",
"bm,nn": "begge"
},
"menu": {
"title": "Meny",
"help-and-info": "Hjelp og informasjon",
......
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