diff --git a/apps/red-ui/src/app/modules/account/screens/notifications/notifications-screen/notifications-screen.component.html b/apps/red-ui/src/app/modules/account/screens/notifications/notifications-screen/notifications-screen.component.html index cf0f4412e..9b03d9358 100644 --- a/apps/red-ui/src/app/modules/account/screens/notifications/notifications-screen/notifications-screen.component.html +++ b/apps/red-ui/src/app/modules/account/screens/notifications/notifications-screen/notifications-screen.component.html @@ -36,7 +36,7 @@
-
diff --git a/apps/red-ui/src/app/modules/account/screens/notifications/notifications-screen/notifications-screen.component.ts b/apps/red-ui/src/app/modules/account/screens/notifications/notifications-screen/notifications-screen.component.ts index a862021bd..26e1acfd4 100644 --- a/apps/red-ui/src/app/modules/account/screens/notifications/notifications-screen/notifications-screen.component.ts +++ b/apps/red-ui/src/app/modules/account/screens/notifications/notifications-screen/notifications-screen.component.ts @@ -1,4 +1,4 @@ -import { ChangeDetectionStrategy, Component, OnInit } from '@angular/core'; +import { ChangeDetectionStrategy, ChangeDetectorRef, Component, OnInit } from '@angular/core'; import { FormBuilder, FormGroup } from '@angular/forms'; import { notificationsTranslations } from '../../../translations/notifications-translations'; import { NotificationPreferencesService } from '../../../services/notification-preferences.service'; @@ -30,6 +30,7 @@ export class NotificationsScreenComponent extends BaseFormComponent implements O private readonly _formBuilder: FormBuilder, private readonly _loadingService: LoadingService, private readonly _notificationPreferencesService: NotificationPreferencesService, + private readonly _changeRef: ChangeDetectorRef, ) { super(); } @@ -72,6 +73,8 @@ export class NotificationsScreenComponent extends BaseFormComponent implements O } catch (e) { this._toaster.error(_('notifications-screen.error.generic')); } + this.initialFormValue = JSON.parse(JSON.stringify(this.form.getRawValue())); + this._changeRef.markForCheck(); this._loadingService.stop(); } diff --git a/apps/red-ui/src/assets/i18n/en.json b/apps/red-ui/src/assets/i18n/en.json index 4351b2c12..9619fb88a 100644 --- a/apps/red-ui/src/assets/i18n/en.json +++ b/apps/red-ui/src/assets/i18n/en.json @@ -1545,14 +1545,14 @@ "DOCUMENT_UNDER_REVIEW": "When the document status changes to Under Review", "DOSSIER_DELETED": "When a dossier was deleted", "DOSSIER_OWNER_DELETED": "When the owner of a dossier got deleted", - "DOSSIER_OWNER_REMOVED": "When I loose dossier ownership", + "DOSSIER_OWNER_REMOVED": "When I lose dossier ownership", "DOSSIER_OWNER_SET": "When I become the dossier owner", "DOWNLOAD_READY": "When a download is ready", "UNASSIGNED_FROM_FILE": "When I am unassigned from a document", "USER_BECOMES_DOSSIER_MEMBER": "When a user was added to my dossier", "USER_DEGRADED_TO_REVIEWER": "When I become a Reviewer in a dossier", "USER_PROMOTED_TO_APPROVER": "When I become an Approver in a dossier", - "USER_REMOVED_AS_DOSSIER_MEMBER": "When I loose dossier membership" + "USER_REMOVED_AS_DOSSIER_MEMBER": "When I lose dossier membership" }, "schedule": { "daily": "Daily Summary", diff --git a/tools/auto-i18n/import.xliff b/tools/auto-i18n/import.xliff index f89e69300..fa216309d 100644 --- a/tools/auto-i18n/import.xliff +++ b/tools/auto-i18n/import.xliff @@ -3347,7 +3347,7 @@ Wenn der Eigentümer eines Dossiers gelöscht wurde - When I loose dossier ownership + When I lose dossier ownership Wenn ich den Besitz des Dossiers verliere @@ -3375,7 +3375,7 @@ Wenn ich Genehmiger in einem Dossier werde - When I loose dossier membership + When I lose dossier membership Wenn ich die Dossier-Mitgliedschaft verliere diff --git a/tools/auto-i18n/redaction-en-to-de.xliff b/tools/auto-i18n/redaction-en-to-de.xliff index 0e75c7033..b52f6cc20 100644 --- a/tools/auto-i18n/redaction-en-to-de.xliff +++ b/tools/auto-i18n/redaction-en-to-de.xliff @@ -3347,7 +3347,7 @@ Bitte aus der Liste unten auswählen. Wenn der Eigentümer eines Dossiers gelöscht wurde - When I loose dossier ownership + When I lose dossier ownership Wenn ich den Besitz des Dossiers verliere @@ -3375,7 +3375,7 @@ Bitte aus der Liste unten auswählen. Wenn ich Genehmiger in einem Dossier werde - When I loose dossier membership + When I lose dossier membership Wenn ich die Dossier-Mitgliedschaft verliere @@ -4124,4 +4124,4 @@ Bitte aus der Liste unten auswählen. - \ No newline at end of file + diff --git a/tools/auto-i18n/test.xml b/tools/auto-i18n/test.xml index d0d98ac60..e71ee4c94 100644 --- a/tools/auto-i18n/test.xml +++ b/tools/auto-i18n/test.xml @@ -3497,7 +3497,7 @@ - When I loose dossier ownership + When I lose dossier ownership @@ -3525,7 +3525,7 @@ - When I loose dossier membership + When I lose dossier membership