فهرست منبع

add missing case in treatments button label

polscm32 2 سال پیش
والد
کامیت
1ce16cf995
1فایلهای تغییر یافته به همراه7 افزوده شده و 0 حذف شده
  1. 7 0
      FreeAPS/Sources/Modules/Bolus/View/AlternativeBolusCalcRootView.swift

+ 7 - 0
FreeAPS/Sources/Modules/Bolus/View/AlternativeBolusCalcRootView.swift

@@ -978,6 +978,13 @@ extension Bolus {
                         (externalBolusLimit ? "Manual bolus exceeds max bolus!" : "Log carbs and external insulin") :
                         (externalBolusLimit ? "Manual bolus exceeds max bolus!" : "Log carbs and external insulin") :
                         (pumpBolusLimit ? "Pump bolus exceeds max bolus!" : "Log carbs and enact bolus")
                         (pumpBolusLimit ? "Pump bolus exceeds max bolus!" : "Log carbs and enact bolus")
                 )
                 )
+            case (true, false, true):
+                return Text(
+                    state
+                        .externalInsulin ?
+                        (externalBolusLimit ? "Manual bolus exceeds max bolus!" : "Log FPUs and external insulin") :
+                        (pumpBolusLimit ? "Pump bolus exceeds max bolus!" : "Log FPUs and enact bolus")
+                )
             case (true, false, false):
             case (true, false, false):
                 return Text(
                 return Text(
                     state
                     state