소스 검색

Make button more descriptive

Jon Mårtensson 2 년 전
부모
커밋
83765ba17d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      FreeAPS/Sources/Modules/Bolus/View/AlternativeBolusCalcRootView.swift

+ 1 - 1
FreeAPS/Sources/Modules/Bolus/View/AlternativeBolusCalcRootView.swift

@@ -108,7 +108,7 @@ extension Bolus {
                         let id_ = meal.first?.id ?? ""
                         state.backToCarbsView(complexEntry: fetch, id_)
                     }
-                    label: { Text("Edit Meal / Add Meal") }.frame(maxWidth: .infinity, alignment: .center)
+                    label: { Text(fetch ? "Delete and Edit" : "Add Meal") }.frame(maxWidth: .infinity, alignment: .center)
                 }
 
                 Section {