delta preview for download

This commit is contained in:
Timo Bejan 2022-02-11 09:54:26 +02:00
parent 2bf40effe3
commit 7cafb93543
4 changed files with 14 additions and 9 deletions

View File

@ -20,7 +20,7 @@ import { firstValueFrom } from 'rxjs';
export class AddEditDossierTemplateDialogComponent extends BaseDialogComponent {
hasValidFrom: boolean;
hasValidTo: boolean;
downloadTypesEnum: DownloadFileType[] = ['ORIGINAL', 'PREVIEW', 'REDACTED'];
downloadTypesEnum: DownloadFileType[] = ['ORIGINAL', 'PREVIEW', 'DELTA_PREVIEW', 'REDACTED'];
downloadTypes: { key: DownloadFileType; label: string }[] = this.downloadTypesEnum.map(type => ({
key: type,
label: downloadTypesTranslations[type],

View File

@ -18,10 +18,12 @@ export class AddDossierDialogComponent extends BaseDialogComponent {
readonly iconButtonTypes = IconButtonTypes;
hasDueDate = false;
downloadTypes: { key: DownloadFileType; label: string }[] = ['ORIGINAL', 'PREVIEW', 'REDACTED'].map((type: DownloadFileType) => ({
key: type,
label: downloadTypesTranslations[type],
}));
downloadTypes: { key: DownloadFileType; label: string }[] = ['ORIGINAL', 'PREVIEW', 'DELTA_PREVIEW', 'REDACTED'].map(
(type: DownloadFileType) => ({
key: type,
label: downloadTypesTranslations[type],
}),
);
dossierTemplates: IDossierTemplate[];
availableReportTypes = [];

View File

@ -15,10 +15,12 @@ import { firstValueFrom } from 'rxjs';
})
export class EditDossierDownloadPackageComponent implements OnInit, EditDossierSectionInterface {
form: FormGroup;
downloadTypes: { key: DownloadFileType; label: string }[] = ['ORIGINAL', 'PREVIEW', 'REDACTED'].map((type: DownloadFileType) => ({
key: type,
label: downloadTypesTranslations[type],
}));
downloadTypes: { key: DownloadFileType; label: string }[] = ['ORIGINAL', 'PREVIEW', 'DELTA_PREVIEW', 'REDACTED'].map(
(type: DownloadFileType) => ({
key: type,
label: downloadTypesTranslations[type],
}),
);
availableReportTypes: IReportTemplate[] = [];
@Input() dossier: Dossier;

View File

@ -4,5 +4,6 @@ export const DownloadFileTypes = {
ORIGINAL: 'ORIGINAL',
PREVIEW: 'PREVIEW',
REDACTED: 'REDACTED',
DELTA_PREVIEW: 'DELTA_PREVIEW',
} as const;
export type DownloadFileType = keyof typeof DownloadFileTypes;