From d00c96fb6cf45e081fa720dda57e7d72017e8a30 Mon Sep 17 00:00:00 2001 From: Nicoleta Panaghiu Date: Wed, 27 Jul 2022 14:21:04 +0300 Subject: [PATCH 1/2] 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": { From 4e3c243fa1b44c0356b9afdebcec487072478501 Mon Sep 17 00:00:00 2001 From: Nicoleta Panaghiu Date: Wed, 27 Jul 2022 15:49:16 +0300 Subject: [PATCH 2/2] RED-4706: Removed unused service from constructor && updated config.json --- .../dialogs/edit-color-dialog/edit-color-dialog.component.ts | 2 -- apps/red-ui/src/assets/config/config.json | 4 ++-- 2 files changed, 2 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 558febb18..01d6a0969 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 @@ -3,7 +3,6 @@ import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog'; import { DefaultColorType } from '@red/domain'; import { BaseDialogComponent } from '@iqser/common-ui'; import { UntypedFormGroup, Validators } from '@angular/forms'; -import { TranslateService } from '@ngx-translate/core'; import { defaultColorsTranslations } from '@translations/default-colors-translations'; import { marker as _ } from '@biesbjerg/ngx-translate-extract-marker'; import { firstValueFrom } from 'rxjs'; @@ -23,7 +22,6 @@ export class EditColorDialogComponent extends BaseDialogComponent { constructor( private readonly _defaultColorsService: DefaultColorsService, - private readonly _translateService: TranslateService, protected readonly _dialogRef: MatDialogRef, @Inject(MAT_DIALOG_DATA) readonly data: IEditColorData, ) { diff --git a/apps/red-ui/src/assets/config/config.json b/apps/red-ui/src/assets/config/config.json index 8e7d077a8..0c71adeeb 100644 --- a/apps/red-ui/src/assets/config/config.json +++ b/apps/red-ui/src/assets/config/config.json @@ -1,7 +1,7 @@ { "ADMIN_CONTACT_NAME": null, "ADMIN_CONTACT_URL": null, - "API_URL": "https://dev-05.iqser.cloud/redaction-gateway-v1", + "API_URL": "https://dev-04.iqser.cloud/redaction-gateway-v1", "APP_NAME": "RedactManager", "AUTO_READ_TIME": 3, "BACKEND_APP_VERSION": "4.4.40", @@ -11,7 +11,7 @@ "MAX_RETRIES_ON_SERVER_ERROR": 3, "OAUTH_CLIENT_ID": "redaction", "OAUTH_IDP_HINT": null, - "OAUTH_URL": "https://dev-05.iqser.cloud/auth/realms/redaction", + "OAUTH_URL": "https://dev-04.iqser.cloud/auth/realms/redaction", "RECENT_PERIOD_IN_HOURS": 24, "SELECTION_MODE": "structural", "MANUAL_BASE_URL": "https://docs.redactmanager.com/preview"