From bc5699b3d79b9d16ae7286ec09e4233208a25e2b Mon Sep 17 00:00:00 2001 From: Luke Barnard Date: Wed, 14 Mar 2018 18:13:39 +0000 Subject: [PATCH] Add change delay warning in GroupView settings --- src/components/structures/GroupView.js | 7 +++++++ src/i18n/strings/en_EN.json | 1 + 2 files changed, 8 insertions(+) diff --git a/src/components/structures/GroupView.js b/src/components/structures/GroupView.js index 4a28faaac4..30e897e5dc 100644 --- a/src/components/structures/GroupView.js +++ b/src/components/structures/GroupView.js @@ -707,8 +707,15 @@ export default React.createClass({ }); const header = this.state.editing ?

{ _t('Community Settings') }

:
; + const changeDelayWarning = this.state.editing && this.state.isUserPrivileged ? +
+ { _t( 'Changes made to your community might not be seen by other users ' + + 'for up to 30 minutes.', + ) } +
:
; return
{ header } + { changeDelayWarning } { this._getLongDescriptionNode() } { this._getRoomsNode() }
; diff --git a/src/i18n/strings/en_EN.json b/src/i18n/strings/en_EN.json index 064062f5e7..ce55241a85 100644 --- a/src/i18n/strings/en_EN.json +++ b/src/i18n/strings/en_EN.json @@ -766,6 +766,7 @@ "Leave": "Leave", "Unable to leave room": "Unable to leave room", "Community Settings": "Community Settings", + "Changes made to your community might not be seen by other users for up to 30 minutes.": "Changes made to your community might not be seen by other users for up to 30 minutes.", "These rooms are displayed to community members on the community page. Community members can join the rooms by clicking on them.": "These rooms are displayed to community members on the community page. Community members can join the rooms by clicking on them.", "Add rooms to this community": "Add rooms to this community", "Featured Rooms:": "Featured Rooms:",