aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 */