summaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2020-02-15 01:39:14 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2020-02-15 01:39:14 +0900
commit44f7c13ad401a73d1dd456c4f73114956090a172 (patch)
tree1dc1a67a0ac453445ed19c86125986416b187055 /src/client
parentUpdate CHANGELOG.md (diff)
downloadmisskey-44f7c13ad401a73d1dd456c4f73114956090a172.tar.gz
misskey-44f7c13ad401a73d1dd456c4f73114956090a172.tar.bz2
misskey-44f7c13ad401a73d1dd456c4f73114956090a172.zip
:v:
Diffstat (limited to 'src/client')
-rw-r--r--src/client/app.vue27
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,