aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIván Ávalos <avalos@disroot.org>2023-01-09 23:15:33 -0600
committerIván Ávalos <avalos@disroot.org>2023-01-09 23:15:33 -0600
commit073e78859724a122233f6349592a3e6c10f05ed1 (patch)
tree98eb46844a4124979a301d904e244af3b3652183
parent5cde397f72cdcce4af1ff46bfe42e1f781258044 (diff)
downloadetbsa-trackermap-mobile-073e78859724a122233f6349592a3e6c10f05ed1.tar.gz
etbsa-trackermap-mobile-073e78859724a122233f6349592a3e6c10f05ed1.tar.bz2
etbsa-trackermap-mobile-073e78859724a122233f6349592a3e6c10f05ed1.zip
[ios] Change status icon to mean ignition
-rw-r--r--iosApp/iosApp/Devices/DeviceRow.swift16
1 files changed, 3 insertions, 13 deletions
diff --git a/iosApp/iosApp/Devices/DeviceRow.swift b/iosApp/iosApp/Devices/DeviceRow.swift
index 8a826ca..26f2550 100644
--- a/iosApp/iosApp/Devices/DeviceRow.swift
+++ b/iosApp/iosApp/Devices/DeviceRow.swift
@@ -69,25 +69,15 @@ struct DeviceRow: View {
func getSharedContent() -> some View {
VStack {
HStack {
- /* MARK: - Status icon */
- switch (unit.getStatus()) {
- case .online:
+ /* MARK: - Ignition */
+ if (unit.getIgnition()) {
Image(systemName: "circle.fill")
.foregroundColor(.systemGreen)
.imageScale(.small)
- case .offline:
+ } else {
Image(systemName: "circle.fill")
.foregroundColor(.systemRed)
.imageScale(.small)
- default:
- EmptyView()
- }
-
- /* MARK: - Ignition */
- if (unit.getIgnition()) {
- Image(systemName: "key.fill")
- .foregroundColor(.systemYellow)
- .imageScale(.small)
}
/* MARK: - Engine stop */