diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-09-19 17:29:03 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-09-19 17:29:03 +0900 |
| commit | faf29b768f0d774401b234a40eb227bf33cbe034 (patch) | |
| tree | 655556765848e62e32da76b89514f1464800dd39 /src/client | |
| parent | 8.56.0 (diff) | |
| download | misskey-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.vue | 5 |
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; } }, |