diff --git a/ui-ngx/src/app/modules/home/components/dashboard-page/dashboard-page.component.ts b/ui-ngx/src/app/modules/home/components/dashboard-page/dashboard-page.component.ts index f3e57a9dcb..e24f1cad07 100644 --- a/ui-ngx/src/app/modules/home/components/dashboard-page/dashboard-page.component.ts +++ b/ui-ngx/src/app/modules/home/components/dashboard-page/dashboard-page.component.ts @@ -161,14 +161,14 @@ import { HasDirtyFlag } from '@core/guards/confirm-on-exit.guard'; }) export class DashboardPageComponent extends PageComponent implements IDashboardController, HasDirtyFlag, OnInit, AfterViewInit, OnDestroy { - private forcePristine = true; + private forcePristine = false; get isDirty(): boolean { - return this.isEdit && this.forcePristine; + return this.isEdit && !this.forcePristine; } set isDirty(value: boolean) { - this.forcePristine = value; + this.forcePristine = !value; } authState: AuthState = getCurrentAuthState(this.store);