summaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-10-13 12:51:01 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-10-13 12:51:01 +0900
commit946c7069135eac86a101d642347f7f7dc9f258e9 (patch)
tree36352beb38efc4ecb1ad1c56eea50a5ee47639ba /src/client
parentAdd some keyboard shortcuts of note (diff)
downloadmisskey-946c7069135eac86a101d642347f7f7dc9f258e9.tar.gz
misskey-946c7069135eac86a101d642347f7f7dc9f258e9.tar.bz2
misskey-946c7069135eac86a101d642347f7f7dc9f258e9.zip
Better design
Diffstat (limited to 'src/client')
-rw-r--r--src/client/app/common/views/components/note-menu.vue24
1 files 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 21713e56a0..6b96974d5b 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;
}
},