RED-8375: fixed watermark and border not appearing all the time.
This commit is contained in:
parent
5e0c8f6c13
commit
c0bd129b5c
@ -165,17 +165,20 @@ export class FilePreviewScreenComponent
|
|||||||
);
|
);
|
||||||
|
|
||||||
effect(() => {
|
effect(() => {
|
||||||
this.state.shouldUpdate();
|
this.state.updateExcludedPagesStyle();
|
||||||
if (this._documentViewer.pageComplete()) {
|
if (this._documentViewer.pageComplete()) {
|
||||||
this.#setExcludedPageStyles();
|
this.#setExcludedPageStyles();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
effect(() => {
|
effect(() => {
|
||||||
|
this.state.updateExcludedPagesStyle();
|
||||||
if (this._viewModeService.viewMode()) {
|
if (this._viewModeService.viewMode()) {
|
||||||
this.updateViewMode().then();
|
this.updateViewMode().then();
|
||||||
this._logger.info('[PDF] Stamp pdf');
|
if (_documentViewer.loaded()) {
|
||||||
this._stampService.stampPDF().then();
|
this._logger.info('[PDF] Stamp pdf');
|
||||||
|
this._stampService.stampPDF().then();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@ -44,7 +44,7 @@ export class FilePreviewStateService {
|
|||||||
readonly dossierId = getParam(DOSSIER_ID);
|
readonly dossierId = getParam(DOSSIER_ID);
|
||||||
readonly dossierTemplateId = getParam(DOSSIER_TEMPLATE_ID);
|
readonly dossierTemplateId = getParam(DOSSIER_TEMPLATE_ID);
|
||||||
readonly fileId = getParam(FILE_ID);
|
readonly fileId = getParam(FILE_ID);
|
||||||
readonly shouldUpdate = computed(() => this.file().excludedPages);
|
readonly updateExcludedPagesStyle = computed(() => this.file().excludedPages);
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
private readonly _permissionsService: PermissionsService,
|
private readonly _permissionsService: PermissionsService,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user