Show an alert the first time mark all as read is tapped

This commit is contained in:
Phil Viso
2019-10-07 19:48:58 -05:00
parent 461c681a9d
commit b963d97922
5 changed files with 22 additions and 6 deletions

View File

@@ -89,8 +89,9 @@ class MasterTimelineViewController: UITableViewController, UndoableCommandRunner
// MARK: Actions
@IBAction func markAllAsRead(_ sender: Any) {
if coordinator.shouldDisplayMarkAllAsReadUndoTip {
if coordinator.displayMarkAllAsReadUndoTip {
let alertController = MarkArticlesReadAlertController.timelineArticlesAlert { [weak self] _ in
self?.coordinator.displayMarkAllAsReadUndoTip = false
self?.coordinator.markAllAsReadInTimeline()
}