Remove "Report issue" from About
Will bind report to current profile.
This commit is contained in:
parent
0f374fa8c9
commit
4bd339d456
|
@ -39,7 +39,7 @@ class AboutViewController: UITableViewController, TableModelHost {
|
||||||
model.setHeader(L10n.About.Sections.Feedback.header, for: .feedback)
|
model.setHeader(L10n.About.Sections.Feedback.header, for: .feedback)
|
||||||
model.set([.version, .credits, .disclaimer, .website], in: .info)
|
model.set([.version, .credits, .disclaimer, .website], in: .info)
|
||||||
model.set([.sourcePassepartout, .sourceTunnelKit], in: .source)
|
model.set([.sourcePassepartout, .sourceTunnelKit], in: .source)
|
||||||
model.set([.requestSupport, .reportIssue, .writeReview], in: .feedback)
|
model.set([.requestSupport, .writeReview], in: .feedback)
|
||||||
return model
|
return model
|
||||||
}()
|
}()
|
||||||
|
|
||||||
|
@ -86,10 +86,6 @@ class AboutViewController: UITableViewController, TableModelHost {
|
||||||
UIApplication.shared.open(AppConstants.URLs.subreddit, options: [:], completionHandler: nil)
|
UIApplication.shared.open(AppConstants.URLs.subreddit, options: [:], completionHandler: nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
private func reportConnectivityIssue() {
|
|
||||||
IssueReporter.shared.present(in: self)
|
|
||||||
}
|
|
||||||
|
|
||||||
private func writeReview() {
|
private func writeReview() {
|
||||||
let url = AppConstants.URLs.review(withId: GroupConstants.App.appId)
|
let url = AppConstants.URLs.review(withId: GroupConstants.App.appId)
|
||||||
UIApplication.shared.open(url, options: [:], completionHandler: nil)
|
UIApplication.shared.open(url, options: [:], completionHandler: nil)
|
||||||
|
@ -148,8 +144,6 @@ extension AboutViewController {
|
||||||
|
|
||||||
case requestSupport
|
case requestSupport
|
||||||
|
|
||||||
case reportIssue
|
|
||||||
|
|
||||||
case writeReview
|
case writeReview
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -207,11 +201,6 @@ extension AboutViewController {
|
||||||
cell.leftText = L10n.About.Cells.RequestSupport.caption
|
cell.leftText = L10n.About.Cells.RequestSupport.caption
|
||||||
return cell
|
return cell
|
||||||
|
|
||||||
case .reportIssue:
|
|
||||||
let cell = Cells.setting.dequeue(from: tableView, for: indexPath)
|
|
||||||
cell.leftText = L10n.About.Cells.ReportIssue.caption
|
|
||||||
return cell
|
|
||||||
|
|
||||||
case .writeReview:
|
case .writeReview:
|
||||||
let cell = Cells.setting.dequeue(from: tableView, for: indexPath)
|
let cell = Cells.setting.dequeue(from: tableView, for: indexPath)
|
||||||
cell.leftText = L10n.About.Cells.WriteReview.caption
|
cell.leftText = L10n.About.Cells.WriteReview.caption
|
||||||
|
@ -242,9 +231,6 @@ extension AboutViewController {
|
||||||
case .requestSupport:
|
case .requestSupport:
|
||||||
postSupportRequest()
|
postSupportRequest()
|
||||||
|
|
||||||
case .reportIssue:
|
|
||||||
reportConnectivityIssue()
|
|
||||||
|
|
||||||
case .writeReview:
|
case .writeReview:
|
||||||
writeReview()
|
writeReview()
|
||||||
}
|
}
|
||||||
|
|
|
@ -664,7 +664,7 @@ extension ServiceViewController: UITableViewDataSource, UITableViewDelegate, Tog
|
||||||
|
|
||||||
case .reportIssue:
|
case .reportIssue:
|
||||||
let cell = Cells.setting.dequeue(from: tableView, for: indexPath)
|
let cell = Cells.setting.dequeue(from: tableView, for: indexPath)
|
||||||
cell.leftText = L10n.About.Cells.ReportIssue.caption
|
cell.leftText = L10n.Service.Cells.ReportIssue.caption
|
||||||
return cell
|
return cell
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -97,6 +97,7 @@
|
||||||
"service.cells.test_connectivity.caption" = "Test connectivity";
|
"service.cells.test_connectivity.caption" = "Test connectivity";
|
||||||
"service.cells.data_count.caption" = "Exchanged bytes count";
|
"service.cells.data_count.caption" = "Exchanged bytes count";
|
||||||
"service.cells.debug_log.caption" = "Debug log";
|
"service.cells.debug_log.caption" = "Debug log";
|
||||||
|
"service.cells.report_issue.caption" = "Report connectivity issue";
|
||||||
|
|
||||||
"service.alerts.credentials_needed.message" = "You need to enter account credentials first.";
|
"service.alerts.credentials_needed.message" = "You need to enter account credentials first.";
|
||||||
"service.alerts.reconnect_vpn.message" = "Do you want to reconnect to the VPN?";
|
"service.alerts.reconnect_vpn.message" = "Do you want to reconnect to the VPN?";
|
||||||
|
@ -182,7 +183,6 @@
|
||||||
"about.sections.feedback.header" = "Feedback";
|
"about.sections.feedback.header" = "Feedback";
|
||||||
"about.cells.version.caption" = "Version";
|
"about.cells.version.caption" = "Version";
|
||||||
"about.cells.request_support.caption" = "Request support";
|
"about.cells.request_support.caption" = "Request support";
|
||||||
"about.cells.report_issue.caption" = "Report connectivity issue";
|
|
||||||
"about.cells.write_review.caption" = "Write a review";
|
"about.cells.write_review.caption" = "Write a review";
|
||||||
"about.cells.website.caption" = "Visit website";
|
"about.cells.website.caption" = "Visit website";
|
||||||
|
|
||||||
|
|
|
@ -14,11 +14,6 @@ internal enum L10n {
|
||||||
|
|
||||||
internal enum Cells {
|
internal enum Cells {
|
||||||
|
|
||||||
internal enum ReportIssue {
|
|
||||||
/// Report connectivity issue
|
|
||||||
internal static let caption = L10n.tr("Localizable", "about.cells.report_issue.caption")
|
|
||||||
}
|
|
||||||
|
|
||||||
internal enum RequestSupport {
|
internal enum RequestSupport {
|
||||||
/// Request support
|
/// Request support
|
||||||
internal static let caption = L10n.tr("Localizable", "about.cells.request_support.caption")
|
internal static let caption = L10n.tr("Localizable", "about.cells.request_support.caption")
|
||||||
|
@ -562,6 +557,11 @@ internal enum L10n {
|
||||||
internal static let caption = L10n.tr("Localizable", "service.cells.reconnect.caption")
|
internal static let caption = L10n.tr("Localizable", "service.cells.reconnect.caption")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
internal enum ReportIssue {
|
||||||
|
/// Report connectivity issue
|
||||||
|
internal static let caption = L10n.tr("Localizable", "service.cells.report_issue.caption")
|
||||||
|
}
|
||||||
|
|
||||||
internal enum TestConnectivity {
|
internal enum TestConnectivity {
|
||||||
/// Test connectivity
|
/// Test connectivity
|
||||||
internal static let caption = L10n.tr("Localizable", "service.cells.test_connectivity.caption")
|
internal static let caption = L10n.tr("Localizable", "service.cells.test_connectivity.caption")
|
||||||
|
|
Loading…
Reference in New Issue