Przeglądaj źródła

Display No Data string when no basal rate running and found

Deniz Cengiz 1 rok temu
rodzic
commit
01aa930345

+ 7 - 1
FreeAPS/Sources/Modules/Home/View/HomeRootView.swift

@@ -182,7 +182,7 @@ extension Home {
                 timerDate: $state.timerDate,
                 timerDate: $state.timerDate,
                 timeZone: $state.timeZone,
                 timeZone: $state.timeZone,
                 pumpStatusHighlightMessage: $state.pumpStatusHighlightMessage,
                 pumpStatusHighlightMessage: $state.pumpStatusHighlightMessage,
-                battery: state.batteryFromPersistence
+                battery: $state.batteryFromPersistence
             ).onTapGesture {
             ).onTapGesture {
                 state.setupPump = true
                 state.setupPump = true
             }
             }
@@ -479,6 +479,12 @@ extension Home {
                             .foregroundColor(.insulinTintColor)
                             .foregroundColor(.insulinTintColor)
                         Text(tempBasalString)
                         Text(tempBasalString)
                             .font(.system(size: 16, weight: .bold, design: .rounded))
                             .font(.system(size: 16, weight: .bold, design: .rounded))
+                    } else {
+                        Image(systemName: "drop.circle")
+                            .font(.system(size: 16))
+                            .foregroundColor(.insulinTintColor)
+                        Text("No Data")
+                            .font(.system(size: 16, weight: .bold, design: .rounded))
                     }
                     }
                 }
                 }
                 if !state.tins {
                 if !state.tins {