Skip to content

Commit

Permalink
Small UI Fixes for subscriptions (#2690)
Browse files Browse the repository at this point in the history
Task/Issue URL: https://app.asana.com/0/1204099484721401/1207003662391345/f

Description:
A few minor UI changes.
- Added a title to the VPN navigation bar
- Added a loader to Restore View
  • Loading branch information
afterxleep authored Apr 12, 2024
1 parent e924191 commit 9261f84
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
1 change: 1 addition & 0 deletions DuckDuckGo/NetworkProtectionRootViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ final class NetworkProtectionRootViewController: UIHostingController<NetworkProt
override func viewDidLoad() {
super.viewDidLoad()
decorate()
self.title = UserText.netPNavTitle
}

@MainActor required dynamic init?(coder aDecoder: NSCoder) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,8 @@ final class SubscriptionRestoreViewModel: ObservableObject {
self.state.viewTitle = UserText.subscriptionAddDeviceTitle
}
default:
state.isLoading = false
}
} else {
DispatchQueue.main.async {
self.state.viewTitle = UserText.subscriptionActivate
state.isLoading = false
}
}
}
Expand Down
2 changes: 2 additions & 0 deletions DuckDuckGo/Subscription/Views/SubscriptionRestoreView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,8 @@ struct SubscriptionRestoreView: View {
}
}
}
} else {
SwiftUI.ProgressView()
}
}
}
Expand Down

0 comments on commit 9261f84

Please sign in to comment.