Qml/ModPage: complete delete confirmation dialog
This commit is contained in:
parent
b61d1d1fa9
commit
7ac5f7470e
1 changed files with 10 additions and 6 deletions
|
|
@ -18,20 +18,24 @@ Kirigami.Page {
|
||||||
}
|
}
|
||||||
|
|
||||||
Kirigami.Dialog {
|
Kirigami.Dialog {
|
||||||
id: notImplementedDialog
|
id: deleteConfirmationDialog
|
||||||
title: "Not implemented"
|
title: "Delete mod"
|
||||||
standardButtons: Kirigami.Dialog.Ok
|
standardButtons: Kirigami.Dialog.Ok | Kirigami.Dialog.Cancel
|
||||||
padding: Kirigami.Units.largeSpacing
|
padding: Kirigami.Units.largeSpacing
|
||||||
Controls.Label {
|
Controls.Label {
|
||||||
text: "Deleting is not implemented yet"
|
text: "Permanently delete this mod?"
|
||||||
|
}
|
||||||
|
onOpened: {
|
||||||
|
const deleteButton = standardButton(Kirigami.Dialog.Cancel)
|
||||||
|
deleteButton.forceActiveFocus()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
actions: [
|
actions: [
|
||||||
Kirigami.Action {
|
Kirigami.Action {
|
||||||
text: "Remove"
|
text: "Delete"
|
||||||
icon.name: "delete-symbolic"
|
icon.name: "delete-symbolic"
|
||||||
onTriggered: notImplementedDialog.open()
|
onTriggered: deleteConfirmationDialog.open()
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue