RoomGeneralPage: Add missing separator
And some other minor fixes
This commit is contained in:
committed by
Joshua Goins
parent
bae4de227c
commit
00c5aa26bb
@@ -70,17 +70,23 @@ FormCard.FormCardPage {
|
|||||||
readOnly: !room.canSendState("m.room.name")
|
readOnly: !room.canSendState("m.room.name")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
FormCard.FormDelegateSeparator {}
|
||||||
|
|
||||||
FormCard.FormTextAreaDelegate {
|
FormCard.FormTextAreaDelegate {
|
||||||
id: roomTopicField
|
id: roomTopicField
|
||||||
label: i18n("Room topic:")
|
label: i18n("Room topic:")
|
||||||
Accessible.description: roomTopicLabel.text
|
|
||||||
text: room.topic
|
text: room.topic
|
||||||
readOnly: !room.canSendState("m.room.topic")
|
readOnly: !room.canSendState("m.room.topic")
|
||||||
onTextChanged: roomTopicField.text = text
|
onTextChanged: roomTopicField.text = text
|
||||||
}
|
}
|
||||||
|
|
||||||
|
FormCard.FormDelegateSeparator {
|
||||||
|
visible: !roomNameField.readOnly || !roomTopicField.readOnly
|
||||||
|
}
|
||||||
|
|
||||||
FormCard.AbstractFormDelegate {
|
FormCard.AbstractFormDelegate {
|
||||||
visible: !roomNameField.readOnly || !roomTopicTextArea.readOnly
|
visible: !roomNameField.readOnly || !roomTopicField.readOnly
|
||||||
background: Item {}
|
background: null
|
||||||
contentItem: RowLayout {
|
contentItem: RowLayout {
|
||||||
Item {
|
Item {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
@@ -90,6 +96,7 @@ FormCard.FormCardPage {
|
|||||||
Layout.topMargin: Kirigami.Units.smallSpacing
|
Layout.topMargin: Kirigami.Units.smallSpacing
|
||||||
enabled: room.name !== roomNameField.text || room.topic !== roomTopicField.text
|
enabled: room.name !== roomNameField.text || room.topic !== roomTopicField.text
|
||||||
text: i18n("Save")
|
text: i18n("Save")
|
||||||
|
icon.name: "document-save-symbolic"
|
||||||
onClicked: {
|
onClicked: {
|
||||||
if (room.name != roomNameField.text) {
|
if (room.name != roomNameField.text) {
|
||||||
room.setName(roomNameField.text);
|
room.setName(roomNameField.text);
|
||||||
|
|||||||
Reference in New Issue
Block a user