From 075c2e61378156e9137bd9081aebd9146947e72a Mon Sep 17 00:00:00 2001 From: Gk40002148 Date: Tue, 22 Feb 2022 15:45:36 +0900 Subject: [PATCH 1/2] =?UTF-8?q?=E3=83=AD=E3=82=B0=E3=82=A2=E3=82=A6?= =?UTF-8?q?=E3=83=88=E3=82=BF=E3=83=83=E3=83=97=E6=99=82=E3=81=AB=E3=80=81?= =?UTF-8?q?=E3=83=AD=E3=82=B0=E3=82=A2=E3=82=A6=E3=83=88=E5=87=A6=E7=90=86?= =?UTF-8?q?=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../WebView/View/MenuTableViewController.swift | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/AgileWorks/AgileWorks/WebView/View/MenuTableViewController.swift b/AgileWorks/AgileWorks/WebView/View/MenuTableViewController.swift index 84a14e1..395e5c9 100644 --- a/AgileWorks/AgileWorks/WebView/View/MenuTableViewController.swift +++ b/AgileWorks/AgileWorks/WebView/View/MenuTableViewController.swift @@ -59,7 +59,15 @@ class MenuTableViewController: UITableViewController { // ログアウトセルタップ処理 private func logout() { // ログアウトタップ時処理 - print("ログアウト タップ") + let message = NSLocalizedString("LogoutConfirm", comment: "") + let defaultAction = AppDelegate.shared.rootViewController.logoutDefaultAction(title: NSLocalizedString("YES", comment: "")) + let cancelAction = UIAlertAction(title: NSLocalizedString("NO", comment: ""), style: .cancel) { _ in + if let indexPath = self.tableView.indexPath(for: self.logoutCell) { + self.tableView.deselectRow(at: indexPath, animated: true) + } + } + + AppDelegate.shared.rootViewController.showAlertScreen(view: self, title: "", message: message, defaultAction: defaultAction, cancelAction: cancelAction) } // ライセンスセルタップ処理 private func pushToLicense() { -- GitLab From 127e323e0f0b4ff85ac637b55576ee077eff116c Mon Sep 17 00:00:00 2001 From: Gk40002148 Date: Fri, 25 Feb 2022 13:31:21 +0900 Subject: [PATCH 2/2] =?UTF-8?q?=E3=83=AD=E3=82=B0=E3=82=A2=E3=82=A6?= =?UTF-8?q?=E3=83=88=E7=A2=BA=E8=AA=8D=E3=83=A1=E3=83=83=E3=82=BB=E3=83=BC?= =?UTF-8?q?=E3=82=B8=E3=81=AE=E5=A4=9A=E8=A8=80=E8=AA=9E=E5=8C=96=E5=AF=BE?= =?UTF-8?q?=E5=BF=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AgileWorks/WebView/View/MenuTableViewController.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/AgileWorks/AgileWorks/WebView/View/MenuTableViewController.swift b/AgileWorks/AgileWorks/WebView/View/MenuTableViewController.swift index bfad574..d01cbf4 100644 --- a/AgileWorks/AgileWorks/WebView/View/MenuTableViewController.swift +++ b/AgileWorks/AgileWorks/WebView/View/MenuTableViewController.swift @@ -59,9 +59,9 @@ class MenuTableViewController: UITableViewController { // ログアウトセルタップ処理 private func logout() { // ログアウトタップ時処理 - let message = NSLocalizedString("LogoutConfirm", comment: "") - let defaultAction = AppDelegate.shared.rootViewController.logoutDefaultAction(title: NSLocalizedString("YES", comment: "")) - let cancelAction = UIAlertAction(title: NSLocalizedString("NO", comment: ""), style: .cancel) { _ in + let message = localizadString(key: "LogoutConfirm", comment: "") + let defaultAction = AppDelegate.shared.rootViewController.logoutDefaultAction(title: localizadString(key: "YES", comment: "")) + let cancelAction = UIAlertAction(title: localizadString(key: "NO", comment: ""), style: .cancel) { _ in if let indexPath = self.tableView.indexPath(for: self.logoutCell) { self.tableView.deselectRow(at: indexPath, animated: true) } -- GitLab