Просмотр исходного кода

Display No Data string when no basal rate running and found

Deniz Cengiz 1 год назад
Родитель
Сommit
01aa930345
1 измененных файлов с 7 добавлено и 1 удалено
  1. 7 1
      FreeAPS/Sources/Modules/Home/View/HomeRootView.swift

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

@@ -182,7 +182,7 @@ extension Home {
                 timerDate: $state.timerDate,
                 timeZone: $state.timeZone,
                 pumpStatusHighlightMessage: $state.pumpStatusHighlightMessage,
-                battery: state.batteryFromPersistence
+                battery: $state.batteryFromPersistence
             ).onTapGesture {
                 state.setupPump = true
             }
@@ -479,6 +479,12 @@ extension Home {
                             .foregroundColor(.insulinTintColor)
                         Text(tempBasalString)
                             .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 {