0.3.1: Aggiorna nelle pagine di dettaglio

This commit is contained in:
Carlo Baratto committed 2026-11-22 09:18:17 +01:00
1 parent 70f7ac4bd2
commit 548ec7eaac
5 files changed
+39 -4

No files matched your search

+16
View File
@@ -38,12 +38,28 @@ Page {
anchors.fill: parent
model: page.list()
PullDownMenu {
MenuItem {
text: qsTr("Aggiorna")
onClicked: statusClient.refresh()
}
}
header: Column {
width: view.width
spacing: Theme.paddingSmall
PageHeader { title: qsTr("Memoria") }
Label {
x: Theme.paddingLarge
width: parent.width - 2 * Theme.paddingLarge
text: statusClient.busy ? qsTr("aggiornamento…")
: qsTr("aggiornato alle ") + statusClient.fetchedAt
font.pixelSize: Theme.fontSizeExtraSmall
color: statusClient.error !== "" ? "#e53935" : Theme.secondaryColor
}
Label {
x: Theme.paddingLarge
width: parent.width - 2 * Theme.paddingLarge