From 44f7c13ad401a73d1dd456c4f73114956090a172 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 15 Feb 2020 01:39:14 +0900 Subject: [PATCH] :v: --- locales/ja-JP.yml | 1 + src/client/app.vue | 27 +++++++++++++++++++-------- 2 files changed, 20 insertions(+), 8 deletions(-) diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index 0bdf321302..7342a92d5b 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -398,6 +398,7 @@ category: "カテゴリ" tags: "タグ" docSource: "このドキュメントのソース" createAccount: "アカウントを作成" +existingAcount: "既存のアカウント" _ago: unknown: "謎" diff --git a/src/client/app.vue b/src/client/app.vue index 6a4acfe070..d696d70fd2 100644 --- a/src/client/app.vue +++ b/src/client/app.vue @@ -362,17 +362,28 @@ export default Vue.extend({ text: this.$t('settings'), to: '/my/settings', icon: faCog, - }, null, { + }, null, ...accountItems, { type: 'item', icon: faPlus, text: this.$t('addAcount'), - action: () => { this.addAcount() }, - }, { - type: 'item', - icon: faPlus, - text: this.$t('createAccount'), - action: () => { this.createAccount() }, - }, null, ...accountItems, ]], + action: () => { + this.$root.menu({ + items: [{ + type: 'item', + text: this.$t('existingAcount'), + action: () => { this.addAcount(); }, + }, { + type: 'item', + text: this.$t('createAccount'), + action: () => { this.createAccount(); }, + }], + align: 'left', + fixed: true, + width: 240, + source: ev.currentTarget || ev.target, + }); + }, + }]], align: 'left', fixed: true, width: 240,