delta preview for download
This commit is contained in:
parent
2bf40effe3
commit
7cafb93543
@ -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],
|
||||
|
||||
@ -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 = [];
|
||||
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user