Skip to content

Commit

Permalink
#76 Rename errorIndicators to statusIndicators
Browse files Browse the repository at this point in the history
  • Loading branch information
ismailgulek committed Jun 20, 2022
1 parent 1482b51 commit cd41244
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions ElementX/Sources/AppCoordinator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class AppCoordinator: AuthenticationCoordinatorDelegate, Coordinator {

private var indicatorPresenter: UserIndicatorTypePresenterProtocol
private var loadingIndicator: UserIndicator?
private var errorIndicator: UserIndicator?
private var statusIndicator: UserIndicator?

var childCoordinators: [Coordinator] = []

Expand Down Expand Up @@ -281,11 +281,11 @@ class AppCoordinator: AuthenticationCoordinatorDelegate, Coordinator {
}

private func showLoginErrorToast() {
errorIndicator = indicatorPresenter.present(.error(label: "Failed logging in"))
statusIndicator = indicatorPresenter.present(.error(label: "Failed logging in"))
}

private func showLogoutErrorToast() {
errorIndicator = indicatorPresenter.present(.success(label: "Failed logging out"))
statusIndicator = indicatorPresenter.present(.error(label: "Failed logging out"))
}

private func showCrashPopup() {
Expand Down
4 changes: 2 additions & 2 deletions ElementX/Sources/Screens/BugReport/BugReportCoordinator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ final class BugReportCoordinator: Coordinator, Presentable {

private var indicatorPresenter: UserIndicatorTypePresenterProtocol
private var loadingIndicator: UserIndicator?
private var errorIndicator: UserIndicator?
private var statusIndicator: UserIndicator?

// MARK: Public

Expand Down Expand Up @@ -97,6 +97,6 @@ final class BugReportCoordinator: Coordinator, Presentable {

/// Show error indicator
private func showError(label: String) {
errorIndicator = indicatorPresenter.present(.error(label: label))
statusIndicator = indicatorPresenter.present(.error(label: label))
}
}
4 changes: 2 additions & 2 deletions ElementX/Sources/Screens/Settings/SettingsCoordinator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ final class SettingsCoordinator: Coordinator, Presentable {

private var indicatorPresenter: UserIndicatorTypePresenterProtocol
private var loadingIndicator: UserIndicator?
private var errorIndicator: UserIndicator?
private var statusIndicator: UserIndicator?

// MARK: Public

Expand Down Expand Up @@ -111,6 +111,6 @@ final class SettingsCoordinator: Coordinator, Presentable {

/// Show success indicator
private func showSuccess(label: String) {
errorIndicator = indicatorPresenter.present(.success(label: label))
statusIndicator = indicatorPresenter.present(.success(label: label))
}
}

0 comments on commit cd41244

Please sign in to comment.