From 44a222adea18eb4b543d696c961e69196a4928f5 Mon Sep 17 00:00:00 2001 From: Filipa Lacerda Date: Fri, 20 Apr 2018 15:38:34 +0100 Subject: Use axios request to interact with API instead of UJS --- .../components/graph/action_component.vue | 2 +- .../components/graph/dropdown_action_component.vue | 53 ---------------------- .../components/graph/dropdown_job_component.vue | 29 ++++++------ .../pipelines/components/graph/job_component.vue | 18 +------- 4 files changed, 16 insertions(+), 86 deletions(-) delete mode 100644 app/assets/javascripts/pipelines/components/graph/dropdown_action_component.vue (limited to 'app/assets/javascripts/pipelines/components/graph') diff --git a/app/assets/javascripts/pipelines/components/graph/action_component.vue b/app/assets/javascripts/pipelines/components/graph/action_component.vue index e99d949801f..558bf812fef 100644 --- a/app/assets/javascripts/pipelines/components/graph/action_component.vue +++ b/app/assets/javascripts/pipelines/components/graph/action_component.vue @@ -62,7 +62,7 @@ export default { @click="onClickAction" v-tooltip :title="tooltipText" - class="btn btn-blank btn-transparent ci-action-icon-container ci-action-icon-wrapper" + class="js-ci-action btn btn-blank btn-transparent ci-action-icon-container ci-action-icon-wrapper" :class="cssClass" data-container="body" :disabled="isDisabled" diff --git a/app/assets/javascripts/pipelines/components/graph/dropdown_action_component.vue b/app/assets/javascripts/pipelines/components/graph/dropdown_action_component.vue deleted file mode 100644 index 7c4fd65e36f..00000000000 --- a/app/assets/javascripts/pipelines/components/graph/dropdown_action_component.vue +++ /dev/null @@ -1,53 +0,0 @@ - - diff --git a/app/assets/javascripts/pipelines/components/graph/dropdown_job_component.vue b/app/assets/javascripts/pipelines/components/graph/dropdown_job_component.vue index be213c2ee78..30e40259146 100644 --- a/app/assets/javascripts/pipelines/components/graph/dropdown_job_component.vue +++ b/app/assets/javascripts/pipelines/components/graph/dropdown_job_component.vue @@ -1,7 +1,7 @@ diff --git a/app/assets/javascripts/pipelines/components/graph/stage_column_component.vue b/app/assets/javascripts/pipelines/components/graph/stage_column_component.vue index f6e6569e15b..5461fdbbadd 100644 --- a/app/assets/javascripts/pipelines/components/graph/stage_column_component.vue +++ b/app/assets/javascripts/pipelines/components/graph/stage_column_component.vue @@ -29,10 +29,11 @@ export default { required: false, default: '', }, - actionDisabled: { + + requestFinishedFor: { type: String, required: false, - default: null, + default: '', }, }, @@ -74,12 +75,12 @@ export default { v-if="job.size === 1" :job="job" css-class-job-name="build-content" - :action-disabled="actionDisabled" /> -- cgit v1.2.1 From 6673934d0e487baf447f2a99b50dd721e0c635ac Mon Sep 17 00:00:00 2001 From: Filipa Lacerda Date: Mon, 23 Apr 2018 12:08:11 +0100 Subject: Fix eslint --- .../javascripts/pipelines/components/graph/dropdown_job_component.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/assets/javascripts/pipelines/components/graph') diff --git a/app/assets/javascripts/pipelines/components/graph/dropdown_job_component.vue b/app/assets/javascripts/pipelines/components/graph/dropdown_job_component.vue index 9adc8881831..43121dd38f3 100644 --- a/app/assets/javascripts/pipelines/components/graph/dropdown_job_component.vue +++ b/app/assets/javascripts/pipelines/components/graph/dropdown_job_component.vue @@ -71,7 +71,7 @@ export default { stopDropdownClickPropagation() { $( '.js-grouped-pipeline-dropdown button, .js-grouped-pipeline-dropdown a.mini-pipeline-graph-dropdown-item', - this.$el + this.$el, ).on('click', e => { e.stopPropagation(); }); -- cgit v1.2.1