Commit 0658a194 authored by Sarah GP's avatar Sarah GP

Pass path all the way through

parent 351d1321
...@@ -93,14 +93,7 @@ export default async function initPipelineDetailsBundle() { ...@@ -93,14 +93,7 @@ export default async function initPipelineDetailsBundle() {
/* webpackChunkName: 'createPipelinesDetailApp' */ './pipeline_details_graph' /* webpackChunkName: 'createPipelinesDetailApp' */ './pipeline_details_graph'
); );
const { metricsPath, pipelineProjectPath, pipelineIid } = dataset; createPipelinesDetailApp(SELECTORS.PIPELINE_GRAPH, dataset);
createPipelinesDetailApp(
SELECTORS.PIPELINE_GRAPH,
pipelineProjectPath,
pipelineIid,
metricsPath,
graphqlResourceEtag,
);
} catch { } catch {
Flash(__('An error occurred while loading the pipeline.')); Flash(__('An error occurred while loading the pipeline.'));
} }
......
...@@ -16,7 +16,7 @@ const apolloProvider = new VueApollo({ ...@@ -16,7 +16,7 @@ const apolloProvider = new VueApollo({
), ),
}); });
const createPipelinesDetailApp = (selector, pipelineProjectPath, pipelineIid, metricsPath, graphqlResourceEtag) => { const createPipelinesDetailApp = (selector, { pipelineProjectPath, pipelineIid, metricsPath, graphqlResourceEtag } = {}) => {
// eslint-disable-next-line no-new // eslint-disable-next-line no-new
new Vue({ new Vue({
el: selector, el: selector,
......
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