From 9ae04073f54582efe8831a265b6e1b8157f58b86 Mon Sep 17 00:00:00 2001 From: Juraj Hilje Date: Wed, 15 Nov 2023 12:27:55 +0100 Subject: [PATCH 1/2] feat(account): add deleteAccount method in AccountViewController --- .../AccountScreen/AccountViewController.swift | 4 ++ IVPNClient/Scenes/Base.lproj/Main.storyboard | 59 +++++++++++++------ .../Extensions/UIViewController+Ext.swift | 4 ++ 3 files changed, 50 insertions(+), 17 deletions(-) diff --git a/IVPNClient/Scenes/AccountScreen/AccountViewController.swift b/IVPNClient/Scenes/AccountScreen/AccountViewController.swift index 5d0a914a1..8b84ce39b 100644 --- a/IVPNClient/Scenes/AccountScreen/AccountViewController.swift +++ b/IVPNClient/Scenes/AccountScreen/AccountViewController.swift @@ -52,6 +52,10 @@ class AccountViewController: UITableViewController { showFlashNotification(message: "Account ID copied to clipboard", presentInView: (navigationController?.view)!) } + @IBAction func deleteAccount(_ sender: UIButton) { + openAccountSettings() + } + @IBAction func addMoreTime(_ sender: Any) { guard !Application.shared.serviceStatus.isLegacyAccount() else { return diff --git a/IVPNClient/Scenes/Base.lproj/Main.storyboard b/IVPNClient/Scenes/Base.lproj/Main.storyboard index 4fb45dc22..c756fac63 100644 --- a/IVPNClient/Scenes/Base.lproj/Main.storyboard +++ b/IVPNClient/Scenes/Base.lproj/Main.storyboard @@ -21,7 +21,7 @@ - +