From 83568084fdd90bacabfe895f50cd7a7360c5bdc1 Mon Sep 17 00:00:00 2001 From: Henrik Askjer <henrik.askjer@uib.no> Date: Thu, 13 Jan 2022 15:50:46 +0100 Subject: [PATCH] refactor --- src/components/InflectionButton.vue | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/components/InflectionButton.vue b/src/components/InflectionButton.vue index 183ffb3b..9e77b13a 100644 --- a/src/components/InflectionButton.vue +++ b/src/components/InflectionButton.vue @@ -4,7 +4,7 @@ <div class="inflection-wrapper" v-if="inflected && !$parent.collapsed"> <v-btn class="show-inflection" width="160px" rounded depressed small @click.native="toggle" :class="$vuetify.breakpoint.name"> - <span>{{this.inflection_expanded? $t('article.hide_inflection'):$t('article.show_inflection')}}</span><span class = "inflection-arrow"><v-icon right>{{inflection_arrow}}</v-icon></span> + <span>{{this.inflection_expanded? $t('article.hide_inflection'):$t('article.show_inflection')}}</span><span class = "inflection-arrow"><v-icon right>{{this.inflection_expanded? "expand_less" : "expand_more"}}</v-icon></span> </v-btn> <div class="inflection-canvas" v-if="inflection_expanded"> <inflectionTable :lemmaList="lemmas_with_word_class_and_lang" :mq="$vuetify.breakpoint.name" /> @@ -27,12 +27,6 @@ export default { article_id: Number }, computed: { - inflect_tooltip: function() { - return this.dictionary == 'bm' ? 'Klikk for å se bøyinger' : 'Klikk for å sjå bøyingar' - }, - inflection_arrow: function() { - return this.inflection_expanded? "expand_less" : "expand_more" - }, group_list: function() { return helpers.group_list(this.lemmas, this.dictionary) }, -- GitLab