From 073c05543ca74d7873cf242fd3c797513aa0caf6 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Thu, 8 Apr 2021 19:20:08 -0600 Subject: [PATCH] Give server ACLs a name in 'roles & permissions' tab The default power levels event includes them, so this helps avoid them showing up as "Send m.room.server_acl events". --- src/components/views/settings/tabs/room/RolesRoomSettingsTab.js | 2 ++ src/i18n/strings/en_EN.json | 1 + 2 files changed, 3 insertions(+) diff --git a/src/components/views/settings/tabs/room/RolesRoomSettingsTab.js b/src/components/views/settings/tabs/room/RolesRoomSettingsTab.js index a2367e3e3b..59a175906d 100644 --- a/src/components/views/settings/tabs/room/RolesRoomSettingsTab.js +++ b/src/components/views/settings/tabs/room/RolesRoomSettingsTab.js @@ -34,6 +34,7 @@ const plEventsToLabels = { [EventType.RoomTopic]: _td("Change topic"), [EventType.RoomTombstone]: _td("Upgrade the room"), [EventType.RoomEncryption]: _td("Enable room encryption"), + [EventType.RoomServerAcl]: _td("Change server ACLs"), // TODO: Enable support for m.widget event type (https://github.com/vector-im/element-web/issues/13111) "im.vector.modular.widgets": _td("Modify widgets"), @@ -49,6 +50,7 @@ const plEventsToShow = { [EventType.RoomTopic]: {isState: true}, [EventType.RoomTombstone]: {isState: true}, [EventType.RoomEncryption]: {isState: true}, + [EventType.RoomServerAcl]: {isState: true}, // TODO: Enable support for m.widget event type (https://github.com/vector-im/element-web/issues/13111) "im.vector.modular.widgets": {isState: true}, diff --git a/src/i18n/strings/en_EN.json b/src/i18n/strings/en_EN.json index c192e51f96..4c5d2bd6a5 100644 --- a/src/i18n/strings/en_EN.json +++ b/src/i18n/strings/en_EN.json @@ -1361,6 +1361,7 @@ "Change topic": "Change topic", "Upgrade the room": "Upgrade the room", "Enable room encryption": "Enable room encryption", + "Change server ACLs": "Change server ACLs", "Modify widgets": "Modify widgets", "Failed to unban": "Failed to unban", "Unban": "Unban",