Skip to content

Commit

Permalink
Merge pull request #392 from ivpn/feature/delete-account-link
Browse files Browse the repository at this point in the history
Add Delete account link in the Account screen
jurajhilje authored Nov 16, 2023
2 parents 7b3bc22 + b7d60f8 commit eb8fc24
Showing 2 changed files with 48 additions and 17 deletions.
6 changes: 6 additions & 0 deletions IVPNClient/Scenes/AccountScreen/AccountViewController.swift
Original file line number Diff line number Diff line change
@@ -52,6 +52,12 @@ class AccountViewController: UITableViewController {
showFlashNotification(message: "Account ID copied to clipboard", presentInView: (navigationController?.view)!)
}

@IBAction func deleteAccount(_ sender: UIButton) {
if let url = URL(string: "https://www.ivpn.net/account/settings") {
UIApplication.shared.open(url, options: [:], completionHandler: nil)
}
}

@IBAction func addMoreTime(_ sender: Any) {
guard !Application.shared.serviceStatus.isLegacyAccount() else {
return
Loading

0 comments on commit eb8fc24

Please sign in to comment.