Skip to content

Commit 28fe91e

Browse files
authored
[LOOP-2169] Set insulin delivery log label colour and update deletion flag (#303)
* set insulin delivery log header label colour * blocking entry deletion with existing flag
1 parent 045e2d2 commit 28fe91e

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

Common/FeatureFlags.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ let FeatureFlags = FeatureFlagConfiguration()
1313
struct FeatureFlagConfiguration: Decodable {
1414
let cgmManagerCategorizeManualGlucoseRangeEnabled: Bool
1515
let criticalAlertsEnabled: Bool
16-
let deleteAllButtonEnabled: Bool
16+
let entryDeletionEnabled: Bool
1717
let fiaspInsulinModelEnabled: Bool
1818
let includeServicesInSettingsEnabled: Bool
1919
let mockTherapySettingsEnabled: Bool
@@ -40,10 +40,10 @@ struct FeatureFlagConfiguration: Decodable {
4040
#endif
4141

4242
// Swift compiler config is inverse, since the default state is enabled.
43-
#if DELETE_ALL_BUTTON_DISABLED
44-
self.deleteAllButtonEnabled = false
43+
#if ENTRY_DELETION_DISABLED
44+
self.entryDeletionEnabled = false
4545
#else
46-
self.deleteAllButtonEnabled = true
46+
self.entryDeletionEnabled = true
4747
#endif
4848

4949
// Swift compiler config is inverse, since the default state is enabled.
@@ -128,7 +128,7 @@ extension FeatureFlagConfiguration : CustomDebugStringConvertible {
128128
return [
129129
"* cgmManagerCategorizeManualGlucoseRangeEnabled: \(cgmManagerCategorizeManualGlucoseRangeEnabled)",
130130
"* criticalAlertsEnabled: \(criticalAlertsEnabled)",
131-
"* deleteAllButtonEnabled: \(deleteAllButtonEnabled)",
131+
"* entryDeletionEnabled: \(entryDeletionEnabled)",
132132
"* fiaspInsulinModelEnabled: \(fiaspInsulinModelEnabled)",
133133
"* includeServicesInSettingsEnabled: \(includeServicesInSettingsEnabled)",
134134
"* mockTherapySettingsEnabled: \(mockTherapySettingsEnabled)",

Loop/View Controllers/StatusTableViewController.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1148,7 +1148,8 @@ final class StatusTableViewController: LoopChartsTableViewController {
11481148
case let vc as InsulinDeliveryTableViewController:
11491149
vc.doseStore = deviceManager.doseStore
11501150
vc.hidesBottomBarWhenPushed = true
1151-
vc.enableDeleteAllButton = FeatureFlags.deleteAllButtonEnabled
1151+
vc.enableEntryDeletion = FeatureFlags.entryDeletionEnabled
1152+
vc.headerValueLabelColor = .insulinTintColor
11521153
case let vc as OverrideSelectionViewController:
11531154
if deviceManager.loopManager.settings.futureOverrideEnabled() {
11541155
vc.scheduledOverride = deviceManager.loopManager.settings.scheduleOverride

0 commit comments

Comments
 (0)