diff options
author | Joas Schilling <coding@schilljs.com> | 2021-06-23 17:02:12 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2021-06-23 17:02:12 +0300 |
commit | 2b1fe507dab5226b3f351da753e280c9e7ee022c (patch) | |
tree | ddbc99e02fe335417e519942b693fd0f89586f00 /src | |
parent | 09da1b9a436a1465abd42b6c60895ee7b8342a2d (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.vue | 4 |
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 { |