From fa4ea494bfb145a2b2cd4f05e8a496e17f8abddf Mon Sep 17 00:00:00 2001
From: Aya Morisawa <AyaMorisawa4869@gmail.com>
Date: Fri, 9 Nov 2018 22:40:17 +0900
Subject: Fix note menu (#3184)

---
 src/client/app/common/views/components/note-menu.vue | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

(limited to 'src/client/app/common/views/components/note-menu.vue')

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 ? [{
-- 
cgit v1.2.3-freya

