0.3.0: pagina Altri comandi (assenza, night mode, forzato, legionella, ACS)

This commit is contained in:
Carlo
2026-10-10 07:26:47 +02:00
parent 2f6c939603
commit 8b293f3565
11 changed files with 281 additions and 5 deletions
+20
View File
@@ -24,6 +24,10 @@ Page {
pageStack.push(Qt.resolvedUrl("SettingsPage.qml"))
}
function openCommands() {
pageStack.push(Qt.resolvedUrl("CommandsPage.qml"))
}
function showNotice(msg, isError) {
page.notice = msg
page.noticeIsError = isError === true
@@ -101,6 +105,10 @@ Page {
text: qsTr("Impostazioni")
onClicked: page.openSettings()
}
MenuItem {
text: qsTr("Altri comandi")
onClicked: page.openCommands()
}
}
Column {
@@ -308,6 +316,18 @@ Page {
InfoRow { visible: api.configured; label: qsTr("Errori"); value: page.count("errors_count") }
InfoRow { visible: api.configured; label: qsTr("Aggiornato alle"); value: page.shortTime(page.raw("pump_updated")) }
Button {
visible: api.configured
anchors {
left: parent.left
right: parent.right
leftMargin: Theme.horizontalPageMargin
rightMargin: Theme.horizontalPageMargin
}
text: qsTr("Altri comandi")
onClicked: page.openCommands()
}
BusyIndicator {
visible: api.busy
anchors.horizontalCenter: parent.horizontalCenter