diff --git a/src/qml/InviteUserPage.qml b/src/qml/InviteUserPage.qml index 5fae26d9e..5b714a7c8 100644 --- a/src/qml/InviteUserPage.qml +++ b/src/qml/InviteUserPage.qml @@ -18,13 +18,13 @@ Kirigami.ScrollablePage { title: i18n("Invite a User") - actions { - main: Kirigami.Action { + actions: [ + Kirigami.Action { icon.name: "dialog-close" text: i18nc("@action", "Cancel") - onTriggered: applicationWindow().pageStack.layers.pop() + onTriggered: root.closeDialog() } - } + ] header: RowLayout { Layout.fillWidth: true Layout.margins: Kirigami.Units.largeSpacing