diff options
author | VladiMihaylenko <vxmihaylenko@gmail.com> | 2017-10-18 18:14:08 +0300 |
---|---|---|
committer | r.kuznetsov <r.kuznetsov@corp.mail.ru> | 2017-11-09 10:46:46 +0300 |
commit | 51898d4e0fd5cb641f2d3abb996974799822b91d (patch) | |
tree | 2caa2eafa3a7f6f38b73947f011622de9a5d1308 /iphone/Maps/UI/PlacePage/PlacePageLayout/Content/UGC | |
parent | 84fd00d9b30f558b7943145162e04693be016e6a (diff) |
[ios] UGC stats
Diffstat (limited to 'iphone/Maps/UI/PlacePage/PlacePageLayout/Content/UGC')
-rw-r--r-- | iphone/Maps/UI/PlacePage/PlacePageLayout/Content/UGC/UGCAddReview/UGCAddReviewController.swift | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/iphone/Maps/UI/PlacePage/PlacePageLayout/Content/UGC/UGCAddReview/UGCAddReviewController.swift b/iphone/Maps/UI/PlacePage/PlacePageLayout/Content/UGC/UGCAddReview/UGCAddReviewController.swift index bd2e295562..7106c07160 100644 --- a/iphone/Maps/UI/PlacePage/PlacePageLayout/Content/UGC/UGCAddReview/UGCAddReviewController.swift +++ b/iphone/Maps/UI/PlacePage/PlacePageLayout/Content/UGC/UGCAddReview/UGCAddReviewController.swift @@ -34,6 +34,12 @@ final class UGCAddReviewController: MWMTableViewController { configTableView() } + override func backTap() { + guard let nc = navigationController else { return } + Statistics.logEvent(kStatUGCReviewCancel); + nc.popToRootViewController(animated: true) + } + private func configNavBar() { title = model.title navigationItem.rightBarButtonItem = UIBarButtonItem(barButtonSystemItem: .done, target: self, action: #selector(onDone)) @@ -52,12 +58,14 @@ final class UGCAddReviewController: MWMTableViewController { assert(false); return } + Statistics.logEvent(kStatUGCReviewSuccess) model.text = text onSave(model) guard let nc = navigationController else { return } if MWMAuthorizationViewModel.isAuthenticated() { nc.popViewController(animated: true) } else { + Statistics.logEvent(kStatUGCReviewAuthShown, withParameters: [kStatFrom : kStatAfterSave]) let authVC = AuthorizationViewController(barButtonItem: navigationItem.rightBarButtonItem!, completion: { nc.popToRootViewController(animated: true) }) present(authVC, animated: true, completion: nil); |