Port all confirm dialogs to Kirigami.PromptDialog

This commit is contained in:
Carl Schwan
2024-05-10 12:54:13 +00:00
committed by Tobias Fella
parent 40d55805ff
commit f45226a680
7 changed files with 63 additions and 81 deletions

View File

@@ -239,11 +239,13 @@ FormCard.FormCardPage {
FormCard.FormButtonDelegate {
id: deactivateAccountButton
text: i18n("Deactivate Account")
onClicked: pageStack.pushDialogLayer(Qt.createComponent('org.kde.neochat', 'ConfirmDeactivateAccountDialog'), {
connection: root.connection
}, {
title: i18nc("@title", "Confirm Deactivating Account")
})
onClicked: {
const component = Qt.createComponent('org.kde.neochat', 'ConfirmDeactivateAccountDialog');
const dialog = component.createObject(QQC2.ApplicationWindow.window, {
connection: root.connection,
});
dialog.open();
}
}
}