diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2018-10-11 13:39:20 +0100 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2018-10-11 14:29:35 +0100 |
commit | 0073be9bf70f79ece094a28ed4d897636ba8ddc8 (patch) | |
tree | 47d17742a3a1959b37454986e9f605906af65dec /app | |
parent | c230b5d16fcbb9e93647642c5aaa6f884cb6bfe9 (diff) | |
download | gitlab-ce-0073be9bf70f79ece094a28ed4d897636ba8ddc8.tar.gz |
Adds `.json` to the end of pipelines endpoint
When the job page is rendered we fetch the pipeline
endpoint to render the stages in the sidebar.
Without `.json` the response is cached, and when the
user goes back to the pipeline's page it renders the
json output instead of the Vue app
Diffstat (limited to 'app')
-rw-r--r-- | app/assets/javascripts/jobs/store/actions.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/jobs/store/actions.js b/app/assets/javascripts/jobs/store/actions.js index 298367c9342..c8e1090bcc5 100644 --- a/app/assets/javascripts/jobs/store/actions.js +++ b/app/assets/javascripts/jobs/store/actions.js @@ -139,7 +139,7 @@ export const fetchStages = ({ state, dispatch }) => { dispatch('requestStages'); axios - .get(state.job.pipeline.path) + .get(`${state.job.pipeline.path}.json`) .then(({ data }) => { dispatch('receiveStagesSuccess', data.details.stages); dispatch('fetchJobsForStage', data.details.stages[0]); |