Commit 2105c1f9 authored by Florent POITTEVIN's avatar Florent POITTEVIN
Browse files

fix(preview): preview dialog missing download url

parent 7bb6fc94
...@@ -36,6 +36,9 @@ import { ...@@ -36,6 +36,9 @@ import {
Select, Select,
Store, Store,
} from "@ngxs/store"; } from "@ngxs/store";
import {ApiActionNameEnum} from "@shared/enums/api-action-name.enum";
import {ApiResourceNameEnum} from "@shared/enums/api-resource-name.enum";
import {ApiEnum} from "@shared/enums/api.enum";
import {DataTableComponentEnum} from "@shared/enums/data-table-component.enum"; import {DataTableComponentEnum} from "@shared/enums/data-table-component.enum";
import {DataTestEnum} from "@shared/enums/data-test.enum"; import {DataTestEnum} from "@shared/enums/data-test.enum";
import {FileViewModeEnum} from "@shared/enums/file-view-mode.enum"; import {FileViewModeEnum} from "@shared/enums/file-view-mode.enum";
...@@ -416,6 +419,7 @@ export class DepositFileContainer extends AbstractDetailEditRoutable<Deposit, De ...@@ -416,6 +419,7 @@ export class DepositFileContainer extends AbstractDetailEditRoutable<Deposit, De
fileInput: { fileInput: {
dataFile: DataFileHelper.dataFileAdapter(dataFile), dataFile: DataFileHelper.dataFileAdapter(dataFile),
}, },
fileDownloadUrl: `${ApiEnum.preIngestDeposits}/${dataFile.infoPackage.resId}/${ApiResourceNameEnum.DATAFILE}/${dataFile.resId}/${ApiActionNameEnum.DL}`,
}, },
{ {
width: "max-content", width: "max-content",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment