forked from FoundKeyGang/FoundKey
[Client] Fix bug
This commit is contained in:
parent
70c01c52a8
commit
7b7359fbdc
1 changed files with 9 additions and 6 deletions
|
@ -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)
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue