Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/announcementcenter.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2021-06-23 17:02:12 +0300
committerJoas Schilling <coding@schilljs.com>2021-06-23 17:02:12 +0300
commit2b1fe507dab5226b3f351da753e280c9e7ee022c (patch)
treeddbc99e02fe335417e519942b693fd0f89586f00 /src
parent09da1b9a436a1465abd42b6c60895ee7b8342a2d (diff)
Don't open sidebar without comments being enabled
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'src')
-rw-r--r--src/Components/Announcement.vue4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Components/Announcement.vue b/src/Components/Announcement.vue
index 53c3e8b..dd9da11 100644
--- a/src/Components/Announcement.vue
+++ b/src/Components/Announcement.vue
@@ -243,7 +243,9 @@ export default {
},
onClickFoldedMessage() {
this.isMessageFolded = false
- this.$emit('click', this.id)
+ if (this.comments !== false) {
+ this.$emit('click', this.id)
+ }
},
async onRemoveNotifications() {
try {