Update dashboard-page.component.ts

This commit is contained in:
Igor Kulikov 2023-08-25 18:33:45 +03:00 committed by GitHub
parent 7f5b74d34c
commit 00f21ea9a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);