From 81f7afe7302e3b1402a3ecbe33585e19b1d22295 Mon Sep 17 00:00:00 2001 From: James Graham Date: Tue, 13 Dec 2022 20:27:12 +0000 Subject: [PATCH] Fix the hover text for add alias button. Only show the add alias textfield if the user has the appropriate permissions --- src/qml/RoomSettings/General.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/qml/RoomSettings/General.qml b/src/qml/RoomSettings/General.qml index f82468e4f..e2fd3dbaf 100644 --- a/src/qml/RoomSettings/General.qml +++ b/src/qml/RoomSettings/General.qml @@ -176,6 +176,7 @@ Kirigami.ScrollablePage { } MobileForm.AbstractFormDelegate { Layout.fillWidth: true + visible: room.canSendState("m.room.canonical_alias") contentItem : RowLayout { Kirigami.ActionTextField { @@ -200,7 +201,7 @@ Kirigami.ScrollablePage { QQC2.Button { id: addButton - text: i18n("Add keyword") + text: i18n("Add new alias") Accessible.name: text icon.name: "list-add" display: QQC2.AbstractButton.IconOnly