diff --git a/src/components/dashboard/DashboardTable.vue b/src/components/dashboard/DashboardTable.vue index 7fa898e9..f8c3daea 100644 --- a/src/components/dashboard/DashboardTable.vue +++ b/src/components/dashboard/DashboardTable.vue @@ -132,9 +132,8 @@ {{ rec.itemName }} {{ rec.primaryfileName }} {{ rec.outputName }} {{ rec.outputLabel }}{{ testResult.workflowResult.workflowStep diff --git a/src/service/workflow-result-service.js b/src/service/workflow-result-service.js index ab41d80d..25401de1 100644 --- a/src/service/workflow-result-service.js +++ b/src/service/workflow-result-service.js @@ -53,13 +53,28 @@ export default class WorkflowResultService extends BaseService { return data; } - getSourceUrl(primaryfileId) { - const url = `${this.API_URL}/primaryfiles/${primaryfileId}/media`; - return url; + async getSourceLink(primaryfileId) { + const url = `/primaryfiles/${primaryfileId}/media`; + var symlink = await super.get_auth(url).then((result) => { + return result.headers['location']; + }); + return symlink; + } + + async getSourceUrl(primaryfileId) { + const url = `/primaryfiles/${primaryfileId}/media`; + var content = await super.get_auth(url).then((result) => { + return result.data; + }); + return content; } - getOutputUrl(id) { - const url = `${this.API_URL}/workflow-results/${id}/output`; - return url; + + async getOutputUrl(id) { + const url = `/workflow-results/${id}/output`; + var content = await super.get_auth(url).then((result) => { + return result.data; + }); + return content; } async deleteWorkflowResult(id) {