1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-22 10:34:13 +02:00
This commit is contained in:
syuilo
2018-06-08 11:46:45 +09:00
parent 335ab5ab54
commit ebeb7f8578
11 changed files with 117 additions and 81 deletions

View File

@@ -13,23 +13,23 @@ export default Vue.extend({
items() {
const items = [];
items.push({
content: '%i18n:@favorite%',
onClick: this.favorite
text: '%i18n:@favorite%',
action: this.favorite
});
if (this.note.userId == this.$store.state.i.id) {
items.push({
content: '%i18n:@pin%',
onClick: this.pin
text: '%i18n:@pin%',
action: this.pin
});
items.push({
content: '%i18n:@delete%',
onClick: this.del
text: '%i18n:@delete%',
action: this.del
});
}
if (this.note.uri) {
items.push({
content: '%i18n:@remote%',
onClick: () => {
text: '%i18n:@remote%',
action: () => {
window.open(this.note.uri, '_blank');
}
});