Refactor code

This commit is contained in:
2026-05-28 10:52:46 +01:00
parent 7041c5335b
commit d37ff4ace4
31 changed files with 132 additions and 353 deletions
@@ -49,10 +49,7 @@ export class SettingForm implements OnInit {
const settingsPicture = await firstValueFrom(this.settingsService.getSettingEndpoint());
this.settings.set(settingsPicture);
} catch {
this.notificationService.error(
'Erreur',
'Aucun paramètre défini'
)
this.notificationService.error('Erreur', 'Aucun paramètre défini')
}
}
@@ -78,7 +75,7 @@ export class SettingForm implements OnInit {
}
await this.fetchSettings();
} catch {
this.notificationService.error('Erreur', "Erreur de communication avec l'API");
this.notificationService.error('Erreur', 'Impossible de changer les paramètres actuellement');
}
this.settingForm.reset();