Add room name to invite popup
This commit is contained in:
parent
a493b0cf61
commit
843389693e
|
@ -83,6 +83,7 @@ HColumnLayout {
|
|||
{
|
||||
userId: chat.userId,
|
||||
roomId: chat.roomId,
|
||||
roomName: chat.roomInfo.display_name,
|
||||
invitingAllowed: Qt.binding(() => inviteButton.enabled),
|
||||
},
|
||||
)
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user