Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-manuel committed Dec 12, 2024
1 parent 6b68d1c commit bf6474d
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions pages/settings/PageSettingsSupportAndTroubleshoot.qml
Original file line number Diff line number Diff line change
Expand Up @@ -198,42 +198,42 @@ Page {

model: ObjectModel {

ListNavigationItem {
ListNavigation {
//% ""
text: "Customization checks"
secondaryText: getSystemState()
secondaryLabel.color: fsModifiedState === 0 && systemHooksState === 0 ? Theme.color_font_primary : Theme.color_red
onClicked: {
Global.pageManager.pushPage(systemIntegrityListItem, {"title": text})
Global.pageManager.pushPage(systemIntegrityList, {"title": text})
}

Component {
id: systemIntegrityListItem
id: systemIntegrityList

Page {
GradientListView {
model: ObjectModel {

ListLabel {
PrimaryListLabel {
//% ""
text: "Customization checks"
}

ListTextItem {
ListText {
//% ""
text: "System state"
secondaryText: getSystemState()
secondaryLabel.color: fsModifiedState === 0 && systemHooksState === 0 ? Theme.color_green : Theme.color_red
}

ListTextItem {
ListText {
//% "Device model"
text: "Device model"
secondaryText: modelItem.value
secondaryLabel.color: modelItem.value.indexOf("Raspberry") === -1 ? Theme.color_green : Theme.color_red
}

ListTextItem {
ListText {
//% "HQ serial number"
text: "HQ serial number"
//% ""
Expand All @@ -244,7 +244,7 @@ Page {
allowed: defaultAllowed && hqSerialNumberItem.value != ""
}

ListTextItem {
ListText {
//% ""
text: "Data partition free space"
secondaryText: scaleBytes(dataPartitionFreeSpaceItem.value)
Expand All @@ -258,55 +258,55 @@ Page {
}
}

ListTextItem {
ListText {
//% ""
text: "Modifications loaded at boot"
secondaryText: getSystemHooksState()
secondaryLabel.color: systemHooksState === 0 ? Theme.color_green : systemHooksState < 4 ? Theme.color_orange : Theme.color_red
}

ListTextItem {
ListText {
//% ""
text: "Firmware integrity"
secondaryText: getFsModifiedState()
secondaryLabel.color: fsModifiedState === 0 ? Theme.color_green : Theme.color_red
}

ListTextItem {
ListText {
//% ""
text: "Latest firmware version installed?"
secondaryText: getFirmwareState()
secondaryLabel.color: getFirmwareState(false) ? Theme.color_green : Theme.color_red
}

ListTextItem {
ListText {
// text: CommonWords.firmware_version
text: "Installed firmware version"
secondaryText: FirmwareVersion.versionText(dataItem.value, "venus")
dataItem.uid: Global.venusPlatform.serviceUid + "/Firmware/Installed/Version"
}

ListTextItem {
ListText {
// text: qsTrId("settings_build_date_time")
text: "Installed build date/time"
dataItem.uid: Global.venusPlatform.serviceUid + "/Firmware/Installed/Build"
}

ListTextItem {
ListText {
//% ""
text: "Installed image type"
secondaryText: signalKItem.isValid || nodeRedItem.isValid ? qsTrId("settings_firmware_large") : qsTrId("settings_firmware_normal")
}

ListTextItem {
ListText {
//% ""
text: "User SSH key present"
secondaryText: systemIntegritySshKeyForRootPresentItem.value === 1 ? "Yes" : "No"
}



ListLabel {
PrimaryListLabel {
text: "Tools to normalize the system"
}

Expand All @@ -325,7 +325,7 @@ Page {
dataItem.uid: Global.systemSettings.serviceUid + "/Settings/System/SystemIntegrity/AllModificationsDisabled"

bottomContentChildren: [
ListLabel {
PrimaryListLabel {
width: Math.min(implicitWidth, disableAllModifications.maximumContentWidth)
topPadding: 0
bottomPadding: 0
Expand Down Expand Up @@ -456,15 +456,15 @@ Page {

}

ListNavigationItem {
ListNavigation {
//% ""
text: qsTrId("Firmware: Online update")
onClicked: {
Global.pageManager.pushPage("/pages/settings/PageSettingsFirmwareOnline.qml", { title: text })
}
}

ListNavigationItem {
ListNavigation {
//% ""
text: qsTrId("Firmware: Install from SD/USB")
onClicked: {
Expand All @@ -488,15 +488,15 @@ Page {
}
}

ListNavigationItem {
ListNavigation {
//% ""
text: "Useful links"
onClicked: {
Global.pageManager.pushPage(usefulLinksListItem, {"title": text})
Global.pageManager.pushPage(usefulLinksList, {"title": text})
}

Component {
id: usefulLinksListItem
id: usefulLinksList

Page {
GradientListView {
Expand Down

0 comments on commit bf6474d

Please sign in to comment.