From 20798dd2fa161d4e24229ef0f8fbf33e3ac08e06 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Fri, 29 Sep 2017 15:22:37 -0600 Subject: [PATCH] Expose power level setting for widgets Fixes https://github.com/vector-im/riot-web/issues/4866 Signed-off-by: Travis Ralston --- src/components/views/rooms/RoomSettings.js | 4 ++++ src/i18n/strings/en_EN.json | 1 + src/i18n/strings/en_US.json | 1 + 3 files changed, 6 insertions(+) diff --git a/src/components/views/rooms/RoomSettings.js b/src/components/views/rooms/RoomSettings.js index f1dcfbfc64..e3fe50713b 100644 --- a/src/components/views/rooms/RoomSettings.js +++ b/src/components/views/rooms/RoomSettings.js @@ -44,6 +44,8 @@ const plEventsToLabels = { "m.room.history_visibility": "To change the room's history visibility, you must be a", "m.room.power_levels": "To change the permissions in the room, you must be a", "m.room.topic": "To change the topic, you must be a", + + "im.vector.modular.widgets": "To modify widgets in the room, you must be a", }; const plEventsToShow = { @@ -54,6 +56,8 @@ const plEventsToShow = { "m.room.history_visibility": {isState: true}, "m.room.power_levels": {isState: true}, "m.room.topic": {isState: true}, + + "im.vector.modular.widgets": {isState: true}, } const BannedUser = React.createClass({ diff --git a/src/i18n/strings/en_EN.json b/src/i18n/strings/en_EN.json index ee1bed814a..792626ca7c 100644 --- a/src/i18n/strings/en_EN.json +++ b/src/i18n/strings/en_EN.json @@ -838,6 +838,7 @@ "To change the room's history visibility, you must be a": "To change the room's history visibility, you must be a", "To change the permissions in the room, you must be a": "To change the permissions in the room, you must be a", "To change the topic, you must be a": "To change the topic, you must be a", + "To modify widgets in the room, you must be a": "To modify widgets in the room, you must be a", "Error whilst fetching joined groups": "Error whilst fetching joined groups", "Featured Users:": "Featured Users:", "Edit Group": "Edit Group", diff --git a/src/i18n/strings/en_US.json b/src/i18n/strings/en_US.json index a1dd9d53cc..8a78a18407 100644 --- a/src/i18n/strings/en_US.json +++ b/src/i18n/strings/en_US.json @@ -662,6 +662,7 @@ "To change the room's history visibility, you must be a": "To change the room's history visibility, you must be a", "To change the permissions in the room, you must be a": "To change the permissions in the room, you must be a", "To change the topic, you must be a": "To change the topic, you must be a", + "To modify widgets in the room, you must be a": "To modify widgets in the room, you must be a", "This Home Server would like to make sure you are not a robot": "This Home Server would like to make sure you are not a robot", "Sign in with CAS": "Sign in with CAS", "Custom Server Options": "Custom Server Options",