Add more support URLs

This commit is contained in:
Davide De Rosa 2019-11-19 23:59:05 +01:00
parent ad9f1b625d
commit e8c838c2e1
2 changed files with 23 additions and 1 deletions

View File

@ -78,6 +78,8 @@ class OrganizerViewController: UITableViewController, StrongTableHost {
if ProductManager.shared.isEligibleForFeedback() {
feedbackRows.append(.writeReview)
}
feedbackRows.append(.visitAlternativeTo)
feedbackRows.append(.visitProductHunt)
model.set(feedbackRows, forSection: .feedback)
model.set([.openAbout], forSection: .about)
@ -434,6 +436,10 @@ extension OrganizerViewController {
case joinCommunity
case writeReview
case visitAlternativeTo
case visitProductHunt
case openAbout
@ -524,6 +530,16 @@ extension OrganizerViewController {
let cell = Cells.setting.dequeue(from: tableView, for: indexPath)
cell.leftText = L10n.Core.Organizer.Cells.WriteReview.caption
return cell
case .visitAlternativeTo:
let cell = Cells.setting.dequeue(from: tableView, for: indexPath)
cell.leftText = "AlternativeTo"
return cell
case .visitProductHunt:
let cell = Cells.setting.dequeue(from: tableView, for: indexPath)
cell.leftText = "ProductHunt"
return cell
case .openAbout:
let cell = Cells.setting.dequeue(from: tableView, for: indexPath)
@ -584,6 +600,12 @@ extension OrganizerViewController {
case .writeReview:
writeReview()
case .visitAlternativeTo:
visitURL(AppConstants.URLs.alternativeTo)
case .visitProductHunt:
visitURL(AppConstants.URLs.productHunt)
case .openAbout:
about()

@ -1 +1 @@
Subproject commit dad47f3581ab25d966d204de93634d82b9fe808b
Subproject commit beda7086d31d8ebe531ac4f5776aa62bca6838ea