Update permission alerts (#1953)

* Update system alerts

* Update localisations

* Update localizations
This commit is contained in:
Alfonso Grillo
2023-10-24 16:57:27 +02:00
committed by GitHub
parent c885585b6b
commit 6e5680fc36
9 changed files with 74 additions and 28 deletions
@@ -148,8 +148,8 @@ extension AlertInfo where T == LocationSharingViewError {
switch error {
case .missingAuthorization:
self.init(id: error,
title: "",
message: L10n.errorMissingLocationAuthIos(InfoPlistReader.main.bundleDisplayName),
title: L10n.dialogPermissionLocationTitleIos(InfoPlistReader.main.bundleDisplayName),
message: L10n.dialogPermissionLocationDescriptionIos,
primaryButton: primaryButton,
secondaryButton: secondaryButton)
case .mapError(.failedLoadingMap):
@@ -48,7 +48,7 @@ class StaticLocationScreenViewModel: StaticLocationScreenViewModelType, StaticLo
let action: () -> Void = { [weak self] in self?.actionsSubject.send(.openSystemSettings) }
state.bindings.alertInfo = .init(locationSharingViewError: .missingAuthorization,
primaryButton: .init(title: L10n.actionNotNow, role: .cancel, action: nil),
secondaryButton: .init(title: L10n.commonSettings, action: action))
secondaryButton: .init(title: L10n.actionOpenSettings, action: action))
}
}
}