mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
Auto dismiss bug report when completed (#83)
* #76 Show success indicator on settings coordinator when bug report completed * #76 Add changelog * #76 remove unused method * #76 Rename `errorIndicator`s to `statusIndicator`s
This commit is contained in:
@@ -33,6 +33,7 @@ final class SettingsCoordinator: Coordinator, Presentable {
|
||||
|
||||
private var indicatorPresenter: UserIndicatorTypePresenterProtocol
|
||||
private var loadingIndicator: UserIndicator?
|
||||
private var statusIndicator: UserIndicator?
|
||||
|
||||
// MARK: Public
|
||||
|
||||
@@ -96,6 +97,7 @@ final class SettingsCoordinator: Coordinator, Presentable {
|
||||
guard let self = self, let coordinator = coordinator else { return }
|
||||
self.parameters.navigationRouter.popModule(animated: true)
|
||||
self.remove(childCoordinator: coordinator)
|
||||
self.showSuccess(label: ElementL10n.done)
|
||||
}
|
||||
|
||||
add(childCoordinator: coordinator)
|
||||
@@ -106,4 +108,9 @@ final class SettingsCoordinator: Coordinator, Presentable {
|
||||
self.remove(childCoordinator: coordinator)
|
||||
}
|
||||
}
|
||||
|
||||
/// Show success indicator
|
||||
private func showSuccess(label: String) {
|
||||
statusIndicator = indicatorPresenter.present(.success(label: label))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user