Use a page for invitation instead of popup
This generally work better on a mobile device
This commit is contained in:
@@ -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 {}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user