Rename MarkArticlesReadAlertController to UndoAvailableAlertController to better reflect its new purpose

This commit is contained in:
Maurice Parker
2019-10-10 15:13:20 -05:00
parent f57d3f7df8
commit 8656753423
6 changed files with 31 additions and 23 deletions

View File

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