Add room name to invite popup

This commit is contained in:
miruka 2019-12-13 17:08:59 -04:00
parent a493b0cf61
commit 843389693e
3 changed files with 5 additions and 1 deletions

View File

@ -83,6 +83,7 @@ HColumnLayout {
{
userId: chat.userId,
roomId: chat.roomId,
roomName: chat.roomInfo.display_name,
invitingAllowed: Qt.binding(() => inviteButton.enabled),
},
)

View File

@ -102,6 +102,7 @@ HTileDelegate {
{
userId: model.user_id,
roomId: model.data.room_id,
roomName: model.data.display_name,
invitingAllowed: Qt.binding(() => model.data.can_invite)
}
)

View File

@ -5,7 +5,8 @@ import "../Base"
BoxPopup {
id: popup
// fillAvailableHeight: true
summary.text: qsTr("Invite room members")
summary.text: qsTr("Invite members to <i>%1</i>").arg(roomName)
summary.textFormat: Text.StyledText
okText: qsTr("Invite")
okEnabled: invitingAllowed && Boolean(inviteArea.text.trim())
@ -49,6 +50,7 @@ BoxPopup {
property string userId
property string roomId
property string roomName
property bool invitingAllowed: true
property var inviteFuture: null