From 92a0c475f796989098bf84c813900c0fd89da7d0 Mon Sep 17 00:00:00 2001
From: taehoon
Date: Tue, 20 Aug 2019 16:55:42 -0400
Subject: [PATCH] hide mute conversation button to guests
---
src/components/extra_buttons/extra_buttons.js | 3 +++
src/components/extra_buttons/extra_buttons.vue | 4 ++--
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/src/components/extra_buttons/extra_buttons.js b/src/components/extra_buttons/extra_buttons.js
index 2d05ad39..5ac73e97 100644
--- a/src/components/extra_buttons/extra_buttons.js
+++ b/src/components/extra_buttons/extra_buttons.js
@@ -40,6 +40,9 @@ const ExtraButtons = {
},
canPin () {
return this.ownStatus && (this.status.visibility === 'public' || this.status.visibility === 'unlisted')
+ },
+ canMute () {
+ return !!this.currentUser
}
}
}
diff --git a/src/components/extra_buttons/extra_buttons.vue b/src/components/extra_buttons/extra_buttons.vue
index 564d34df..1b48540e 100644
--- a/src/components/extra_buttons/extra_buttons.vue
+++ b/src/components/extra_buttons/extra_buttons.vue
@@ -9,14 +9,14 @@