diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2017-06-02 16:24:42 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-06-02 16:24:42 +0300 |
commit | 228b73d5e9e68991017dbfc5d072c3831411c383 (patch) | |
tree | cc0435e671819a9e6e51600a2ab82b1659a65aba /app/assets/javascripts/pipelines/services | |
parent | 68112433e1c5537538004f6279cfe83d38aaaa0b (diff) |
Pipeline show view real time header section
Diffstat (limited to 'app/assets/javascripts/pipelines/services')
-rw-r--r-- | app/assets/javascripts/pipelines/services/pipeline_service.js | 5 | ||||
-rw-r--r-- | app/assets/javascripts/pipelines/services/pipelines_service.js | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/app/assets/javascripts/pipelines/services/pipeline_service.js b/app/assets/javascripts/pipelines/services/pipeline_service.js index f1cc60c1ee0..3e0c52c7726 100644 --- a/app/assets/javascripts/pipelines/services/pipeline_service.js +++ b/app/assets/javascripts/pipelines/services/pipeline_service.js @@ -11,4 +11,9 @@ export default class PipelineService { getPipeline() { return this.pipeline.get(); } + + // eslint-disable-next-line + postAction(endpoint) { + return Vue.http.post(`${endpoint}.json`); + } } diff --git a/app/assets/javascripts/pipelines/services/pipelines_service.js b/app/assets/javascripts/pipelines/services/pipelines_service.js index b21f84b4545..e2285494e62 100644 --- a/app/assets/javascripts/pipelines/services/pipelines_service.js +++ b/app/assets/javascripts/pipelines/services/pipelines_service.js @@ -33,8 +33,6 @@ export default class PipelinesService { /** * Post request for all pipelines actions. - * Endpoint content type needs to be: - * `Content-Type:application/x-www-form-urlencoded` * * @param {String} endpoint * @return {Promise} |