summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/pipelines
diff options
context:
space:
mode:
authorFilipa Lacerda <filipa@gitlab.com>2018-04-18 15:36:26 +0100
committerFilipa Lacerda <filipa@gitlab.com>2018-04-18 15:36:26 +0100
commit6ef83d065e099d43293628fd3f2db8c719c20658 (patch)
tree222f32412dab298d1ca79162c782c15318d559c5 /app/assets/javascripts/pipelines
parentac393ade5f3788e1338eba4fd14893b423d114e1 (diff)
downloadgitlab-ce-6ef83d065e099d43293628fd3f2db8c719c20658.tar.gz
Fix eslint errors
Diffstat (limited to 'app/assets/javascripts/pipelines')
-rw-r--r--app/assets/javascripts/pipelines/components/graph/action_component.vue18
1 files changed, 9 insertions, 9 deletions
diff --git a/app/assets/javascripts/pipelines/components/graph/action_component.vue b/app/assets/javascripts/pipelines/components/graph/action_component.vue
index 847789b834c..6a8eee1b48d 100644
--- a/app/assets/javascripts/pipelines/components/graph/action_component.vue
+++ b/app/assets/javascripts/pipelines/components/graph/action_component.vue
@@ -45,7 +45,12 @@ export default {
return `${actionIconDash} js-icon-${actionIconDash}`;
},
},
-
+ created() {
+ eventHub.$on('graphActionFinished', this.updateDisabled);
+ },
+ beforeDestroy() {
+ eventHub.$off('graphActionFinished', this.updateDisabled);
+ },
methods: {
onClickAction() {
$(this.$el).tooltip('hide');
@@ -57,14 +62,8 @@ export default {
if (actionUrl === this.linkRequested) {
this.isDisabled = false;
}
- }
- },
- created() {
- eventHub.$on('graphActionFinished', this.updateDisabled);
- },
- beforeDestroy() {
- eventHub.$off('graphActionFinished', this.updateDisabled);
},
+ },
};
</script>
<template>
@@ -73,7 +72,8 @@ export default {
@click="onClickAction"
v-tooltip
:title="tooltipText"
- class="js-ci-action 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"