From 946c7069135eac86a101d642347f7f7dc9f258e9 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 13 Oct 2018 12:51:01 +0900 Subject: [PATCH] Better design --- .../app/common/views/components/note-menu.vue | 24 ++++++++++--------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/src/client/app/common/views/components/note-menu.vue b/src/client/app/common/views/components/note-menu.vue index 21713e56a..6b96974d5 100644 --- a/src/client/app/common/views/components/note-menu.vue +++ b/src/client/app/common/views/components/note-menu.vue @@ -22,7 +22,19 @@ export default Vue.extend({ icon: '%fa:link%', text: '%i18n:@copy-link%', action: this.copyLink - }, null]; + }]; + + if (this.note.uri) { + items.push({ + icon: '%fa:external-link-square-alt%', + text: '%i18n:@remote%', + action: () => { + window.open(this.note.uri, '_blank'); + } + }); + } + + items.push(null); if (this.note.isFavorited) { items.push({ @@ -63,16 +75,6 @@ export default Vue.extend({ }); } - if (this.note.uri) { - items.push({ - icon: '%fa:external-link-square-alt%', - text: '%i18n:@remote%', - action: () => { - window.open(this.note.uri, '_blank'); - } - }); - } - return items; } },