diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2018-04-18 15:36:26 +0100 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2018-04-18 15:36:26 +0100 |
commit | 6ef83d065e099d43293628fd3f2db8c719c20658 (patch) | |
tree | 222f32412dab298d1ca79162c782c15318d559c5 /app/assets/javascripts/pipelines | |
parent | ac393ade5f3788e1338eba4fd14893b423d114e1 (diff) | |
download | gitlab-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.vue | 18 |
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" |