Commit bd903107 authored by Dimitris Kardarakos's avatar Dimitris Kardarakos

Calendar file selection to be an action

parent 36641244
......@@ -100,21 +100,12 @@ Kirigami.Page {
Kirigami.FormData.label: qsTr("Active:")
}
RowLayout {
Controls2.TextField {
id: importFilePath
visible: (mode == "import")
Kirigami.FormData.label: qsTr("File:")
Controls2.TextField {
id: importFilePath
}
Controls2.Button {
text: "Add"
onClicked: fileChooser.open()
}
}
}
actions {
......@@ -133,11 +124,11 @@ Kirigami.Page {
main: Kirigami.Action {
id: info
text: qsTr("Info")
icon.name : "documentinfo"
text: (mode == "import") ? qsTr("Import") : qsTr("Info")
icon.name : (mode == "import") ? "list-add" : "documentinfo"
onTriggered: {
showPassiveNotification("Please save or cancel the creation of the new calendar");
onClicked: (mode == "import") ? fileChooser.open() : showPassiveNotification("Please save or cancel the creation of the new calendar")
}
}
......
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