|
|
@@ -78,7 +78,14 @@ extension Bolus {
|
|
|
header: { Text("Bolus") }
|
|
|
Section {
|
|
|
Button { state.add() }
|
|
|
- label: { Text(!(state.amount > state.maxBolus) ? "Enact bolus" : "Max Bolus exceeded!") }
|
|
|
+ label: {
|
|
|
+ Text(
|
|
|
+ state.amount < state.maxBolus ? NSLocalizedString("Enact bolus", comment: "") :
|
|
|
+ NSLocalizedString("Max Bolus exceeded!", comment: "")
|
|
|
+ + " (>"
|
|
|
+ + formatter.string(from: state.maxBolus as NSNumber)!
|
|
|
+ + ")"
|
|
|
+ ) }
|
|
|
.disabled(
|
|
|
state.amount <= 0 || state.amount > state.maxBolus
|
|
|
)
|