diff --git a/app/components/artifact-preview/component.js b/app/components/artifact-preview/component.js index 0984d7d7d..fd64559a2 100644 --- a/app/components/artifact-preview/component.js +++ b/app/components/artifact-preview/component.js @@ -6,6 +6,7 @@ export default Component.extend({ router: service(), iframeUrl: '', iframeId: '', + allowDownloadDir: ENV.APP.DOWNLOAD_ARTIFACT_DIR, init() { this._super(...arguments); diff --git a/app/components/artifact-preview/template.hbs b/app/components/artifact-preview/template.hbs index 3f20dfa64..5124d2e4e 100644 --- a/app/components/artifact-preview/template.hbs +++ b/app/components/artifact-preview/template.hbs @@ -1,13 +1,15 @@
- {{#if (eq this.selectedArtifact "/")}} - - Download All - + {{#if this.allowDownloadDir}} + {{#if (eq this.selectedArtifact "/")}} + + Download All + + {{/if}} {{else}} { RELEASE_VERSION: 'stable', DOWNTIME_JOBS: true, SHOW_AVATAR: true, + DOWNLOAD_ARTIFACT_DIR: true, FEEDBACK_HOSTNAME: '', FEEDBACK_SCRIPT: '', FEEDBACK_CONFIG: ''