Browse Source

Bolus UI updated

Ivan Valkou 5 years ago
parent
commit
00f51d036a
1 changed files with 3 additions and 5 deletions
  1. 3 5
      FreeAPS/Sources/Modules/Bolus/View/BolusRootView.swift

+ 3 - 5
FreeAPS/Sources/Modules/Bolus/View/BolusRootView.swift

@@ -61,15 +61,13 @@ extension Bolus {
                         Button { viewModel.add() }
                         label: { Text("Enact bolus") }
                             .disabled(viewModel.amount <= 0)
+                    }
 
+                    Section {
                         if viewModel.waitForSuggestionInitial {
                             Button { viewModel.showModal(for: nil) }
                             label: { Text("Continue without bolus") }
-                        }
-                    }
-
-                    Section {
-                        if !viewModel.waitForSuggestionInitial {
+                        } else {
                             Button { isAddInsulinAlertPresented = true }
                             label: { Text("Add insulin without actually bolusing") }
                                 .disabled(viewModel.amount <= 0)