From 75a58e7549a27964157edc09f15a5cdede5aec27 Mon Sep 17 00:00:00 2001 From: Jared Galanis Date: Tue, 26 Sep 2023 11:55:32 -0400 Subject: [PATCH] refactor: make file URIs relative (#1215) * refactor: make file URIs relative Closes: https://github.com/eclipse-pass/main/issues/733 * remove concat host - we don't need it because there is a leading slash on the file URI and default browser behavior is to use the same host if this is the case --- app/components/workflow-files/index.hbs | 21 ++++++++++----------- app/components/workflow-files/index.js | 8 +------- 2 files changed, 11 insertions(+), 18 deletions(-) diff --git a/app/components/workflow-files/index.hbs b/app/components/workflow-files/index.hbs index 421e41c0..80a45378 100644 --- a/app/components/workflow-files/index.hbs +++ b/app/components/workflow-files/index.hbs @@ -46,13 +46,13 @@ {{#if this.manuscript}} - {{!-- {{#if manuscript.uri}} --}} - {{!-- - {{manuscript.name}} + {{#if this.manuscript.uri}} + + {{this.manuscript.name}} - {{else}} --}} - {{this.manuscript.name}} - {{!-- {{/if}} --}} + {{else}} + {{this.manuscript.name}} + {{/if}} Manuscript @@ -79,20 +79,19 @@ {{#each this.supplementalFiles as |file|}} - {{!-- {{#if file.uri}} + {{#if file.uri}} {{file.name}} - {{else}} --}} - {{file.name}} - {{!-- {{/if}} --}} + {{else}} + {{file.name}} + {{/if}}