Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Expose power level setting for widgets
Browse files Browse the repository at this point in the history
Fixes element-hq/element-web#4866

Signed-off-by: Travis Ralston <travpc@gmail.com>
  • Loading branch information
turt2live committed Sep 29, 2017
1 parent 8ee9d39 commit 20798dd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/views/rooms/RoomSettings.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand All @@ -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({
Expand Down
1 change: 1 addition & 0 deletions src/i18n/strings/en_EN.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions src/i18n/strings/en_US.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 20798dd

Please sign in to comment.