diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2020-02-15 01:39:14 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2020-02-15 01:39:14 +0900 |
| commit | 44f7c13ad401a73d1dd456c4f73114956090a172 (patch) | |
| tree | 1dc1a67a0ac453445ed19c86125986416b187055 /src/client | |
| parent | Update CHANGELOG.md (diff) | |
| download | misskey-44f7c13ad401a73d1dd456c4f73114956090a172.tar.gz misskey-44f7c13ad401a73d1dd456c4f73114956090a172.tar.bz2 misskey-44f7c13ad401a73d1dd456c4f73114956090a172.zip | |
:v:
Diffstat (limited to 'src/client')
| -rw-r--r-- | src/client/app.vue | 27 |
1 files changed, 19 insertions, 8 deletions
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, |