From 94598ab555fa8440d3cc2b0576ebd5d876c5a37c Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 26 Dec 2020 15:38:51 +0900 Subject: [PATCH] Refactoring --- src/client/components/launch-pad.vue | 2 +- src/client/components/sidebar.vue | 2 +- src/client/pages/settings/sidebar.vue | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/client/components/launch-pad.vue b/src/client/components/launch-pad.vue index f732b675e7..4d2a3b2c77 100644 --- a/src/client/components/launch-pad.vue +++ b/src/client/components/launch-pad.vue @@ -65,7 +65,7 @@ export default defineComponent({ created() { this.items = Object.keys(this.menuDef).filter(k => !this.menu.includes(k)).map(k => this.menuDef[k]).filter(def => def.show == null ? true : def.show).map(def => ({ type: def.to ? 'link' : 'button', - text: this.$t(def.title), + text: this.$ts[def.title], icon: def.icon, to: def.to, action: def.action, diff --git a/src/client/components/sidebar.vue b/src/client/components/sidebar.vue index b2c0283a47..0fcdc0f2a9 100644 --- a/src/client/components/sidebar.vue +++ b/src/client/components/sidebar.vue @@ -20,7 +20,7 @@ diff --git a/src/client/pages/settings/sidebar.vue b/src/client/pages/settings/sidebar.vue index 7fba1b6631..174615e75d 100644 --- a/src/client/pages/settings/sidebar.vue +++ b/src/client/pages/settings/sidebar.vue @@ -76,7 +76,7 @@ export default defineComponent({ title: this.$ts.addItem, select: { items: [...menu.map(k => ({ - value: k, text: this.$t(this.menuDef[k].title) + value: k, text: this.$ts[this.menuDef[k].title] })), ...[{ value: '-', text: this.$ts.divider }]]