summaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-09-19 17:29:03 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-09-19 17:29:03 +0900
commitfaf29b768f0d774401b234a40eb227bf33cbe034 (patch)
tree655556765848e62e32da76b89514f1464800dd39 /src/client
parent8.56.0 (diff)
downloadmisskey-faf29b768f0d774401b234a40eb227bf33cbe034.tar.gz
misskey-faf29b768f0d774401b234a40eb227bf33cbe034.tar.bz2
misskey-faf29b768f0d774401b234a40eb227bf33cbe034.zip
Make admin can delete any note
Diffstat (limited to 'src/client')
-rw-r--r--src/client/app/common/views/components/note-menu.vue5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/client/app/common/views/components/note-menu.vue b/src/client/app/common/views/components/note-menu.vue
index c9912fb1e2..08fae46dd6 100644
--- a/src/client/app/common/views/components/note-menu.vue
+++ b/src/client/app/common/views/components/note-menu.vue
@@ -33,12 +33,16 @@ export default Vue.extend({
text: '%i18n:@pin%',
action: this.pin
});
+ }
+
+ if (this.note.userId == this.$store.state.i.id || this.$store.state.i.isAdmin) {
items.push({
icon: '%fa:trash-alt R%',
text: '%i18n:@delete%',
action: this.del
});
}
+
if (this.note.uri) {
items.push({
icon: '%fa:external-link-square-alt%',
@@ -48,6 +52,7 @@ export default Vue.extend({
}
});
}
+
return items;
}
},