Skip to content
Snippets Groups Projects
Commit fa4ea494 authored by Aya Morisawa's avatar Aya Morisawa Committed by syuilo
Browse files

Fix note menu (#3184)

parent 9f327130
No related branches found
No related tags found
No related merge requests found
......@@ -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 ? [{
......
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