Fix note menu (#3184)

This commit is contained in:
Aya Morisawa 2018-11-09 22:40:17 +09:00 committed by syuilo
parent 9f32713093
commit fa4ea494bf
1 changed files with 6 additions and 6 deletions

View File

@ -45,15 +45,15 @@ export default Vue.extend({
text: this.$t('favorite'),
action: this.favorite
}], this.note.userId == this.$store.state.i.id ? [
(this.$store.state.i.pinnedNoteIds || []).includes(this.note.id) ? [{
(this.$store.state.i.pinnedNoteIds || []).includes(this.note.id) ? {
icon: 'thumbtack',
text: this.$t('unpin'),
action: this.unpin
}] : [{
icon: 'thumbtack',
text: this.$t('pin'),
action: this.pin
}]
} : {
icon: 'thumbtack',
text: this.$t('pin'),
action: this.pin
}
] : []
], [
this.note.userId == this.$store.state.i.id || this.$store.state.i.isAdmin ? [{