aboutsummaryrefslogtreecommitdiff
path: root/iosApp/iosApp/Devices/DeviceRow.swift
diff options
context:
space:
mode:
Diffstat (limited to 'iosApp/iosApp/Devices/DeviceRow.swift')
-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 75f8c08..1133c67 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 */