diff --git a/apps/red-ui/src/app/modules/dossier/components/page-indicator/page-indicator.component.ts b/apps/red-ui/src/app/modules/dossier/components/page-indicator/page-indicator.component.ts index 2c9d39c7d..29ea3b674 100644 --- a/apps/red-ui/src/app/modules/dossier/components/page-indicator/page-indicator.component.ts +++ b/apps/red-ui/src/app/modules/dossier/components/page-indicator/page-indicator.component.ts @@ -47,7 +47,10 @@ export class PageIndicatorComponent implements OnChanges, OnInit, OnDestroy { ngOnInit(): void { this._subscription = this._appStateService.fileChanged$.subscribe(() => { - this.canMarkPagesAsViewed = this._permissionService.canMarkPagesAsViewed(); + if (this.canMarkPagesAsViewed !== this._permissionService.canMarkPagesAsViewed()) { + this.canMarkPagesAsViewed = this._permissionService.canMarkPagesAsViewed(); + this._handlePageRead(); + } }); }