From d00c96fb6cf45e081fa720dda57e7d72017e8a30 Mon Sep 17 00:00:00 2001 From: Nicoleta Panaghiu Date: Wed, 27 Jul 2022 14:21:04 +0300 Subject: [PATCH] RED-4706: Updated toast note when changing default color or entity. --- .../dialogs/edit-color-dialog/edit-color-dialog.component.ts | 3 +-- apps/red-ui/src/assets/i18n/en.json | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/apps/red-ui/src/app/modules/admin/dialogs/edit-color-dialog/edit-color-dialog.component.ts b/apps/red-ui/src/app/modules/admin/dialogs/edit-color-dialog/edit-color-dialog.component.ts index ae687d0bb..558febb18 100644 --- a/apps/red-ui/src/app/modules/admin/dialogs/edit-color-dialog/edit-color-dialog.component.ts +++ b/apps/red-ui/src/app/modules/admin/dialogs/edit-color-dialog/edit-color-dialog.component.ts @@ -43,8 +43,7 @@ export class EditColorDialogComponent extends BaseDialogComponent { await firstValueFrom(this._defaultColorsService.update(colors, this.data.dossierTemplateId)); this._dialogRef.close(true); this._loadingService.stop(); - const color = this._translateService.instant(defaultColorsTranslations[this.data.colorKey]); - this._toaster.info(_('edit-color-dialog.success'), { params: { color: color } }); + this._toaster.info(_('edit-color-dialog.success')); } catch (e) { this._toaster.error(_('edit-color-dialog.error')); } diff --git a/apps/red-ui/src/assets/i18n/en.json b/apps/red-ui/src/assets/i18n/en.json index 6f245a2c6..f7a222c31 100644 --- a/apps/red-ui/src/assets/i18n/en.json +++ b/apps/red-ui/src/assets/i18n/en.json @@ -105,7 +105,7 @@ }, "success": { "create": "Entity added!", - "edit": "Entity updated!" + "edit": "Entity updated. Please note that other users need to refresh the browser to see your changes." } }, "add-edit-file-attribute": { @@ -1053,7 +1053,7 @@ "color-placeholder": "Color" }, "save": "Save", - "success": "Successfully updated color for {color}." + "success": "Color saved successfully. Please note that the users need to refresh the browser to see the updated color." }, "edit-dossier-dialog": { "actions": {