Better design

This commit is contained in:
syuilo 2018-10-13 12:51:01 +09:00
parent bfebf156d6
commit 7ee2bfc1eb

View File

@ -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;
}
},