fix excluded pages
This commit is contained in:
parent
991e6a1b1c
commit
cf72dca567
@ -10,6 +10,7 @@ import {
|
|||||||
ErrorService,
|
ErrorService,
|
||||||
FilterService,
|
FilterService,
|
||||||
LoadingService,
|
LoadingService,
|
||||||
|
log,
|
||||||
NestedFilter,
|
NestedFilter,
|
||||||
OnAttach,
|
OnAttach,
|
||||||
OnDetach,
|
OnDetach,
|
||||||
@ -510,12 +511,9 @@ export class FilePreviewScreenComponent extends AutoUnsubscribe implements OnIni
|
|||||||
}
|
}
|
||||||
|
|
||||||
private async _fileUpdated(file: File): Promise<void> {
|
private async _fileUpdated(file: File): Promise<void> {
|
||||||
const hasBeenProcessed = await firstValueFrom(this.stateService.hasBeenProcessed$);
|
|
||||||
await this._loadFileData(file);
|
await this._loadFileData(file);
|
||||||
|
await this._reloadAnnotations();
|
||||||
if (hasBeenProcessed) {
|
await this._stampPDF();
|
||||||
await this._reloadAnnotations();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private _subscribeToFileUpdates(): void {
|
private _subscribeToFileUpdates(): void {
|
||||||
@ -523,6 +521,7 @@ export class FilePreviewScreenComponent extends AutoUnsubscribe implements OnIni
|
|||||||
.watch$(this.dossierId, this.fileId)
|
.watch$(this.dossierId, this.fileId)
|
||||||
.pipe(
|
.pipe(
|
||||||
filter(f => !!f),
|
filter(f => !!f),
|
||||||
|
log(),
|
||||||
switchMap(file => this._fileUpdated(file)),
|
switchMap(file => this._fileUpdated(file)),
|
||||||
)
|
)
|
||||||
.subscribe();
|
.subscribe();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user