Better design

This commit is contained in:
syuilo 2018-10-13 12:51:01 +09:00
parent 89b5d976ee
commit 946c706913
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69

View file

@ -22,7 +22,19 @@ export default Vue.extend({
icon: '%fa:link%', icon: '%fa:link%',
text: '%i18n:@copy-link%', text: '%i18n:@copy-link%',
action: this.copyLink 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) { if (this.note.isFavorited) {
items.push({ 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; return items;
} }
}, },