Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixes issue #399 #404

Merged
merged 4 commits into from
Jul 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions lib/l10n/app_cs.arb
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,7 @@
}
}
},
"couldNotConnectToServer": "Nepodařilo se připojit k serveru.",
"errorRollOutNotPossibleAnymore": "Roll-out tohoto tokenu již není možný.",
"errorTokenExpired": "Platnost tokenu {name} vypršela.",
"@errorTokenExpired": {
Expand Down
1 change: 1 addition & 0 deletions lib/l10n/app_de.arb
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,7 @@
}
}
},
"couldNotConnectToServer": "Konnte keine Verbindung zum Server herstellen.",
"errorRollOutNoConnectionToServer": "Der Rollout von Token {name} ist fehlgeschlagen, der Server konnte nicht erreicht werden.",
"authToAcceptPushRequest": "Bitte authentifizieren Sie sich, um die Anfrage anzunehmen.",
"authToDeclinePushRequest": "Bitte authentifizieren Sie sich, um die Anfrage abzulehnen.",
Expand Down
1 change: 1 addition & 0 deletions lib/l10n/app_en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,7 @@
}
}
},
"couldNotConnectToServer": "Could not connect to server",
"errorRollOutNotPossibleAnymore": "Rolling out this Token is not possible anymore.",
"errorTokenExpired": "The token {name} has expired.",
"@errorTokenExpired": {
Expand Down
1 change: 1 addition & 0 deletions lib/l10n/app_es.arb
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,7 @@
}
}
},
"couldNotConnectToServer": "No se ha podido conectar con el servidor.",
"errorRollOutNotPossibleAnymore": "El despliegue de este token ya no es posible.",
"errorTokenExpired": "El token {name} ha caducado.",
"@errorTokenExpired": {
Expand Down
1 change: 1 addition & 0 deletions lib/l10n/app_fr.arb
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,7 @@
}
}
},
"couldNotConnectToServer": "Impossible de se connecter au serveur.",
"errorRollOutNotPossibleAnymore": "Le déploiement de ce jeton n'est plus possible.",
"errorTokenExpired": "Le jeton {name} a expiré.",
"@errorTokenExpired": {
Expand Down
1 change: 1 addition & 0 deletions lib/l10n/app_nl.arb
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,7 @@
}
}
},
"couldNotConnectToServer": "Kan geen verbinding maken met de server.",
"errorRollOutNotPossibleAnymore": "Het uitrollen van dit token is niet meer mogelijk.",
"errorTokenExpired": "Het token {name} is verlopen.",
"@errorTokenExpired": {
Expand Down
1 change: 1 addition & 0 deletions lib/l10n/app_pl.arb
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,7 @@
}
}
},
"couldNotConnectToServer": "Nie można połączyć się z serwerem.",
"errorRollOutNotPossibleAnymore": "Wstać z łóżka tego tokena nie jest już możliwe.",
"errorTokenExpired": "Token {name} wygasł.",
"@errorTokenExpired": {
Expand Down
10 changes: 6 additions & 4 deletions lib/utils/push_provider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -335,10 +335,12 @@ class PushProvider {
? await instance!._ioClient.doGet(url: token.url!, parameters: parameters, sslVerify: token.sslVerify)
: await const PrivacyIdeaIOClient().doGet(url: token.url!, parameters: parameters, sslVerify: token.sslVerify);
} catch (e) {
globalRef?.read(statusMessageProvider.notifier).state = (
AppLocalizations.of(globalNavigatorKey.currentContext!)!.errorWhenPullingChallenges(token.serial),
null,
);
if (isManually) {
globalRef?.read(statusMessageProvider.notifier).state = (
AppLocalizations.of(globalNavigatorKey.currentContext!)!.errorWhenPullingChallenges(token.serial),
AppLocalizations.of(globalNavigatorKey.currentContext!)!.couldNotConnectToServer,
);
}
return;
}
final List<Map<String, dynamic>> challengeList;
Expand Down
Loading