@@ -15,15 +15,13 @@ Kirigami.ScrollablePage {
|
|||||||
|
|
||||||
property var room
|
property var room
|
||||||
|
|
||||||
parent: applicationWindow().overlay
|
|
||||||
|
|
||||||
title: i18n("Invite a User")
|
title: i18n("Invite a User")
|
||||||
|
|
||||||
actions {
|
actions {
|
||||||
main: Kirigami.Action {
|
main: Kirigami.Action {
|
||||||
icon.name: "dialog-close"
|
icon.name: "dialog-close"
|
||||||
text: i18nc("@action", "Cancel")
|
text: i18nc("@action", "Cancel")
|
||||||
onTriggered: applicationWindow().pageStack.pop()
|
onTriggered: applicationWindow().pageStack.layers.pop()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
header: RowLayout {
|
header: RowLayout {
|
||||||
@@ -125,7 +123,7 @@ Kirigami.ScrollablePage {
|
|||||||
|
|
||||||
onClicked: {
|
onClicked: {
|
||||||
room.inviteToRoom(userID);
|
room.inviteToRoom(userID);
|
||||||
applicationWindow().pageStack.pop();
|
applicationWindow().pageStack.layers.pop();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ Kirigami.OverlayDrawer {
|
|||||||
icon.name: "list-add-user"
|
icon.name: "list-add-user"
|
||||||
text: i18n("Invite")
|
text: i18n("Invite")
|
||||||
onClicked: {
|
onClicked: {
|
||||||
applicationWindow().pageStack.push("qrc:/imports/NeoChat/Page/InviteUserPage.qml", {"room": room})
|
applicationWindow().pageStack.layers.push("qrc:/imports/NeoChat/Page/InviteUserPage.qml", {"room": room})
|
||||||
roomDrawer.close();
|
roomDrawer.close();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user