mirror of
https://github.com/JGeek00/adguard-home-manager.git
synced 2025-04-19 13:29:12 +00:00
Fixed statistics config updated text
This commit is contained in:
parent
0821fd4e0e
commit
9de9b0afec
3 changed files with 8 additions and 4 deletions
|
@ -754,6 +754,8 @@
|
|||
"statisticsSettingsDescription": "Configure data collection for statistics",
|
||||
"loadingStatisticsSettings": "Loading statistics settings...",
|
||||
"statisticsSettingsLoadError": "An error occured when loading statistics settings.",
|
||||
"statisticsConfigUpdated": "Statistics settings updated successfully",
|
||||
"statisticsConfigNotUpdated": "Statistics settings couldn't be updated",
|
||||
"customTimeInHours": "Custom time (in hours)",
|
||||
"invalidTime": "Invalid time",
|
||||
"removeDomain": "Remove domain",
|
||||
|
|
|
@ -754,6 +754,8 @@
|
|||
"statisticsSettingsDescription": "Configura la recolección de datos para estadísticas",
|
||||
"loadingStatisticsSettings": "Cargando ajustes de estadísticas...",
|
||||
"statisticsSettingsLoadError": "Ocurrió un error al cargar los ajustes de estadísticas.",
|
||||
"statisticsConfigNotUpdated": "La configuración de estadísticas no pudo ser actualizada.",
|
||||
"statisticsConfigUpdated": "Configuración de estadísticas actualizada correctamente.",
|
||||
"customTimeInHours": "Tiempo personalizado (en horas)",
|
||||
"invalidTime": "Tiempo no válido",
|
||||
"removeDomain": "Eliminar dominio",
|
||||
|
|
|
@ -145,19 +145,19 @@ class _StatisticsSettingsState extends State<StatisticsSettings> {
|
|||
|
||||
processModal.close();
|
||||
|
||||
if (!mounted) return;
|
||||
if (!context.mounted) return;
|
||||
|
||||
if (result.successful == true) {
|
||||
showSnacbkar(
|
||||
appConfigProvider: appConfigProvider,
|
||||
label: AppLocalizations.of(context)!.logsConfigUpdated,
|
||||
label: AppLocalizations.of(context)!.statisticsConfigUpdated,
|
||||
color: Colors.green
|
||||
);
|
||||
}
|
||||
else {
|
||||
showSnacbkar(
|
||||
appConfigProvider: appConfigProvider,
|
||||
label: AppLocalizations.of(context)!.logsConfigNotUpdated,
|
||||
label: AppLocalizations.of(context)!.statisticsConfigNotUpdated,
|
||||
color: Colors.red
|
||||
);
|
||||
}
|
||||
|
@ -209,7 +209,7 @@ class _StatisticsSettingsState extends State<StatisticsSettings> {
|
|||
if (value != null && value != "custom") {
|
||||
_customTimeError = null;
|
||||
_customTimeController.text = "";
|
||||
};
|
||||
}
|
||||
_retentionTime = value;
|
||||
}),
|
||||
decoration: InputDecoration(
|
||||
|
|
Loading…
Add table
Reference in a new issue