Przeglądaj źródła

Change wording. Temporary remove amount in alert, until fixed.

Jon Mårtensson 3 lat temu
rodzic
commit
b03970e054

+ 3 - 0
FreeAPS/Sources/Localizations/Main/en.lproj/Localizable.strings

@@ -1081,6 +1081,9 @@ Enact a temp Basal or a temp target */
 /* Setting */
 "Fat And Protein Conversion" = "Fat And Protein Conversion";
 
+/* Alert text */
+"Delete carb equivalents?" = "Delete carb equivalents?";
+
 /* -------------------------------------------------------------------------------------------
   DASH strings
 */

+ 3 - 0
FreeAPS/Sources/Localizations/Main/sv.lproj/Localizable.strings

@@ -1080,6 +1080,9 @@ Enact a temp Basal or a temp target */
 /* Setting */
 "Fat And Protein Conversion" = "Omvandling av fett och protein";
 
+/* Alert text */
+"Delete carb equivalents?" = "Radera dessa poster?";
+
 /* -------------------------------------------------------------------------------------------
   DASH strings
 */

+ 1 - 1
FreeAPS/Sources/Modules/DataTable/View/DataTableRootView.swift

@@ -113,7 +113,7 @@ extension DataTable {
                         .onTapGesture {
                             removeCarbsAlert = Alert(
                                 title: Text("Delete carb equivalents?"),
-                                message: Text(item.amountText),
+                                message: Text(""), // Temporary fix. New to fix real amount of carb equivalents later
                                 primaryButton: .destructive(
                                     Text("Delete"),
                                     action: { state.deleteCarbs(item) }