Skip to content

Commit 4da20ae

Browse files
author
Rick Pasetto
authored
Add navigation arrows back to settings (#263)
to: - Therapy Settings - Pump section - CGM section - Services section ... but not for the case where they are in "add" mode
1 parent c82333d commit 4da20ae

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Loop/Views/SettingsView.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ extension SettingsView {
9494
private var therapySettingsSection: some View {
9595
Section(header: SectionHeader(label: NSLocalizedString("Configuration", comment: "The title of the Configuration section in settings"))) {
9696
LargeButton(action: { self.therapySettingsIsPresented = true },
97-
includeArrow: false,
97+
includeArrow: true,
9898
imageView: AnyView(Image("Therapy Icon")),
9999
label: NSLocalizedString("Therapy Settings", comment: "Title text for button to Therapy Settings"),
100100
descriptiveText: NSLocalizedString("Diabetes Treatment", comment: "Descriptive text for Therapy Settings"))
@@ -128,7 +128,7 @@ extension SettingsView {
128128
private var pumpSection: some View {
129129
if viewModel.pumpManagerSettingsViewModel.isSetUp() {
130130
LargeButton(action: self.viewModel.pumpManagerSettingsViewModel.didTap,
131-
includeArrow: false,
131+
includeArrow: true,
132132
imageView: deviceImage(uiImage: viewModel.pumpManagerSettingsViewModel.image()),
133133
label: viewModel.pumpManagerSettingsViewModel.name(),
134134
descriptiveText: NSLocalizedString("Insulin Pump", comment: "Descriptive text for Insulin Pump"))
@@ -158,7 +158,7 @@ extension SettingsView {
158158
private var cgmSection: some View {
159159
if viewModel.cgmManagerSettingsViewModel.isSetUp() {
160160
LargeButton(action: self.viewModel.cgmManagerSettingsViewModel.didTap,
161-
includeArrow: false,
161+
includeArrow: true,
162162
imageView: deviceImage(uiImage: viewModel.cgmManagerSettingsViewModel.image()),
163163
label: viewModel.cgmManagerSettingsViewModel.name(),
164164
descriptiveText: NSLocalizedString("Continuous Glucose Monitor", comment: "Descriptive text for Continuous Glucose Monitor"))
@@ -188,7 +188,7 @@ extension SettingsView {
188188
Section(header: SectionHeader(label: NSLocalizedString("Accounts", comment: "The title of the accounts section in settings"))) {
189189
ForEach(viewModel.servicesViewModel.activeServices().indices, id: \.self) { index in
190190
LargeButton(action: { self.viewModel.servicesViewModel.didTapService(index) },
191-
includeArrow: false,
191+
includeArrow: true,
192192
imageView: self.serviceImage(uiImage: (self.viewModel.servicesViewModel.activeServices()[index] as! ServiceUI).image),
193193
label: self.viewModel.servicesViewModel.activeServices()[index].localizedTitle,
194194
descriptiveText: "")

0 commit comments

Comments
 (0)