Refactor code
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user