RED-8075: fixed conflicting pop-up messaged.

This commit is contained in:
Nicoleta Panaghiu 2023-12-15 10:55:34 +02:00
parent ef7fd2fc1c
commit 83fd9b8c00
2 changed files with 5 additions and 0 deletions

View File

@ -58,6 +58,10 @@ export class EditDossierDictionaryComponent implements EditDossierSectionInterfa
this.dossier.id,
false,
);
} catch (error) {
return { success: false };
}
try {
await this._updateDossierDictionary();
return { success: true };
} catch (error) {

View File

@ -145,6 +145,7 @@ export class DictionaryService extends EntitiesService<IDictionary, Dictionary>
} catch (error) {
if ((error as HttpErrorResponse).status === 400) {
this._toaster.error(_('dictionary-overview.error.400'));
throw error;
} else {
this._toaster.error(_('dictionary-overview.error.generic'));
}