Use a page for invitation instead of popup

This generally work better on a mobile device
This commit is contained in:
Carl Schwan
2020-11-16 22:45:41 +00:00
parent 8c3e5b2b48
commit 28c965a40d
5 changed files with 141 additions and 183 deletions

View File

@@ -130,7 +130,10 @@ Kirigami.OverlayDrawer {
ToolButton {
icon.name: "list-add-user"
text: i18n("Invite")
onClicked: inviteUserDialog.createObject(ApplicationWindow.overlay, {"room": room}).open()
onClicked: {
applicationWindow().pageStack.push("qrc:/imports/NeoChat/Page/InviteUserPage.qml", {"room": room})
roomDrawer.close();
}
}
}
}
@@ -222,10 +225,4 @@ Kirigami.OverlayDrawer {
UserDetailDialog {}
}
Component {
id: inviteUserDialog
InviteUserDialog {}
}
}