diff options
Diffstat (limited to 'app/assets/javascripts/artifacts/index.js')
-rw-r--r-- | app/assets/javascripts/artifacts/index.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/assets/javascripts/artifacts/index.js b/app/assets/javascripts/artifacts/index.js index b5146e0f0e9..e0b2ab2bf47 100644 --- a/app/assets/javascripts/artifacts/index.js +++ b/app/assets/javascripts/artifacts/index.js @@ -1,6 +1,7 @@ import Vue from 'vue'; import VueApollo from 'vue-apollo'; import createDefaultClient from '~/lib/graphql'; +import { parseBoolean } from '~/lib/utils/common_utils'; import JobArtifactsTable from './components/job_artifacts_table.vue'; Vue.use(VueApollo); @@ -16,13 +17,15 @@ export const initArtifactsTable = () => { return false; } - const { projectPath } = el.dataset; + const { projectPath, canDestroyArtifacts, artifactsManagementFeedbackImagePath } = el.dataset; return new Vue({ el, apolloProvider, provide: { projectPath, + canDestroyArtifacts: parseBoolean(canDestroyArtifacts), + artifactsManagementFeedbackImagePath, }, render: (createElement) => createElement(JobArtifactsTable), }); |