Qml: Move delete dialog and button to mod details page
This commit is contained in:
parent
a2789b1704
commit
3024eb9a3d
2 changed files with 18 additions and 13 deletions
|
|
@ -97,19 +97,6 @@ Kirigami.ApplicationWindow {
|
||||||
|
|
||||||
onClicked: mod.enabled = checked
|
onClicked: mod.enabled = checked
|
||||||
}
|
}
|
||||||
Controls.Button {
|
|
||||||
text: "Delete"
|
|
||||||
onClicked: notImplementedDialog.open()
|
|
||||||
Kirigami.Dialog {
|
|
||||||
id: notImplementedDialog
|
|
||||||
title: "Not implemented!"
|
|
||||||
standardButtons: Kirigami.Dialog.Ok
|
|
||||||
padding: Kirigami.Units.largeSpacing
|
|
||||||
Controls.Label {
|
|
||||||
text: "Deleting is not implemented yet"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,24 @@ Kirigami.Page {
|
||||||
applicationWindow().pageStack.pop();
|
applicationWindow().pageStack.pop();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Kirigami.Dialog {
|
||||||
|
id: notImplementedDialog
|
||||||
|
title: "Not implemented"
|
||||||
|
standardButtons: Kirigami.Dialog.Ok
|
||||||
|
padding: Kirigami.Units.largeSpacing
|
||||||
|
Controls.Label {
|
||||||
|
text: "Deleting is not implemented yet"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
actions: [
|
||||||
|
Kirigami.Action {
|
||||||
|
text: "Remove"
|
||||||
|
icon.name: "delete-symbolic"
|
||||||
|
onToggled: notImplementedDialog.open()
|
||||||
|
}
|
||||||
|
]
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
anchors {
|
anchors {
|
||||||
top: parent.top
|
top: parent.top
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue