Commit 9630ec4a authored by Jonah Brüchert's avatar Jonah Brüchert 🌳

Add cancel button to java script confirm dialog

parent 19c3d709
......@@ -25,11 +25,22 @@ Kirigami.OverlaySheet {
Component {
id: confirm
Controls.Button {
text: i18n("Confirm")
onClicked: {
dialogSheet.request.dialogAccept()
dialogSheet.close()
RowLayout {
Controls.Button {
Layout.fillWidth: true
text: i18n("Confirm")
onClicked: {
dialogSheet.request.dialogAccept()
dialogSheet.close()
}
}
Controls.Button {
Layout.fillWidth: true
text: i18n("Cancel")
onClicked: {
dialogSheet.request.dialogReject()
dialogSheet.close()
}
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment