File properties and RED-5355

This commit is contained in:
Timo Bejan 2022-10-12 22:26:10 +03:00
parent 49cff1190e
commit f2bed7a192
3 changed files with 20 additions and 1 deletions

View File

@ -35,7 +35,7 @@
<iqser-circle-button
(action)="openRSSView(file)"
*ngIf="configService.values.RSS_ENABLED"
*ngIf="rssEnabled"
[tooltip]="'file-preview.open-rss-view' | translate"
class="ml-8"
icon="red:extract"

View File

@ -93,6 +93,7 @@ export class FilePreviewScreenComponent
})
private readonly _filterTemplate: TemplateRef<unknown>;
@ViewChild('actionsWrapper', { static: false }) private _actionsWrapper: ElementRef;
readonly rssEnabled: boolean;
constructor(
readonly pdf: PdfViewer,
@ -136,6 +137,7 @@ export class FilePreviewScreenComponent
this.fullScreen = false;
}
});
this.rssEnabled = 'true' === `${configService.values.RSS_ENABLED}`.toLowerCase();
}
get changed() {

View File

@ -69,6 +69,23 @@ export interface IFile {
* Shows if this file has been OCRed by us. Last Time of OCR.
*/
readonly lastOCRTime?: string;
/**
* OCR start Time.
*/
readonly ocrStartTime?: string;
/**
* Number of pages that require OCR.
*/
readonly numberOfPagesToOCR?: number;
/**
* Number of pages already OCR-ed.
*/
readonly numberOfOCRedPages?: number;
/**
* OCR end Time.
*/
readonly ocrEndTime?: string;
/**
* Shows the last date of a successful analysis.
*/