summaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
Diffstat (limited to 'src/client')
-rw-r--r--src/client/app/common/views/components/note-menu.vue12
1 files changed, 6 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 ad761b9391..86b3820c36 100644
--- a/src/client/app/common/views/components/note-menu.vue
+++ b/src/client/app/common/views/components/note-menu.vue
@@ -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 ? [{