Skip to content
Snippets Groups Projects
Unverified Commit 7b7359fb authored by syuilo's avatar syuilo
Browse files

[Client] Fix bug

parent 70c01c52
No related branches found
No related tags found
No related merge requests found
......@@ -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)
}
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment