From 4c7618c8cab4cff3eeac0a09433c09ae5b523011 Mon Sep 17 00:00:00 2001 From: Sergey Volkov <5180915+Sergey-Volkov@users.noreply.github.com> Date: Thu, 20 Aug 2020 19:26:15 +0300 Subject: [PATCH] DEV-8308 Remove 'Announcements' functionality (#27) --- .../client/views/channelSettings.html | 38 ++++++++++--------- .../client/views/channelSettings.js | 3 ++ app/lib/server/startup/settings.js | 4 ++ app/ui/client/views/app/room.js | 2 +- packages/rocketchat-i18n/i18n/en.i18n.json | 1 + 5 files changed, 30 insertions(+), 18 deletions(-) diff --git a/app/channel-settings/client/views/channelSettings.html b/app/channel-settings/client/views/channelSettings.html index ef4736fc06f1..c7b9cfacc348 100644 --- a/app/channel-settings/client/views/channelSettings.html +++ b/app/channel-settings/client/views/channelSettings.html @@ -35,18 +35,20 @@ {{/with}} - {{#with settings.announcement}} -
-
- + {{#if announcementEnabled}} + {{#with settings.announcement}} + -
- {{/with}} + {{/with}} + {{/if}} {{#unless isDirectMessage}} {{#with settings.description}}
@@ -368,12 +370,14 @@
{{/unless}} - + {{#if announcementEnabled}} + + {{/if}}