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 {
|
||||
id: notImplementedDialog
|
||||
title: "Not implemented"
|
||||
standardButtons: Kirigami.Dialog.Ok
|
||||
id: deleteConfirmationDialog
|
||||
title: "Delete mod"
|
||||
standardButtons: Kirigami.Dialog.Ok | Kirigami.Dialog.Cancel
|
||||
padding: Kirigami.Units.largeSpacing
|
||||
Controls.Label {
|
||||
text: "Deleting is not implemented yet"
|
||||
text: "Permanently delete this mod?"
|
||||
}
|
||||
onOpened: {
|
||||
const deleteButton = standardButton(Kirigami.Dialog.Cancel)
|
||||
deleteButton.forceActiveFocus()
|
||||
}
|
||||
}
|
||||
|
||||
actions: [
|
||||
Kirigami.Action {
|
||||
text: "Remove"
|
||||
text: "Delete"
|
||||
icon.name: "delete-symbolic"
|
||||
onTriggered: notImplementedDialog.open()
|
||||
onTriggered: deleteConfirmationDialog.open()
|
||||
}
|
||||
]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue