summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2019-02-05 06:12:41 +0900
committersyuilo <syuilotan@yahoo.co.jp>2019-02-05 06:12:41 +0900
commit7b7359fbdc013f64ad6a7d1f98d64c994a8bb926 (patch)
tree87924d0c27423a17fc8a18c2dbdc4191c255ec86 /src
parentUpdate Vue to 2.6 :rocket: (diff)
downloadmisskey-7b7359fbdc013f64ad6a7d1f98d64c994a8bb926.tar.gz
misskey-7b7359fbdc013f64ad6a7d1f98d64c994a8bb926.tar.bz2
misskey-7b7359fbdc013f64ad6a7d1f98d64c994a8bb926.zip
[Client] Fix bug
Diffstat (limited to 'src')
-rw-r--r--src/client/app/common/views/components/note-menu.vue15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/client/app/common/views/components/note-menu.vue b/src/client/app/common/views/components/note-menu.vue
index c719ba1407..8e342cfd57 100644
--- a/src/client/app/common/views/components/note-menu.vue
+++ b/src/client/app/common/views/components/note-menu.vue
@@ -74,12 +74,15 @@ export default Vue.extend({
text: this.$t('pin'),
action: () => this.togglePin(true)
} : undefined,
- null,
- this.note.userId == this.$store.state.i.id || this.$store.state.i.isAdmin || this.$store.state.i.isModerator ? {
- icon: ['far', 'trash-alt'],
- text: this.$t('delete'),
- action: this.del
- } : undefined].filter(x => x !== undefined)
+ ...(this.note.userId == this.$store.state.i.id || this.$store.state.i.isAdmin || this.$store.state.i.isModerator ? [
+ null, {
+ icon: ['far', 'trash-alt'],
+ text: this.$t('delete'),
+ action: this.del
+ }]
+ : []
+ )]
+ .filter(x => x !== undefined)
}
},