Commit 6ef83d06 authored by Filipa Lacerda's avatar Filipa Lacerda

Fix eslint errors

parent ac393ade
...@@ -45,7 +45,12 @@ export default { ...@@ -45,7 +45,12 @@ export default {
return `${actionIconDash} js-icon-${actionIconDash}`; return `${actionIconDash} js-icon-${actionIconDash}`;
}, },
}, },
created() {
eventHub.$on('graphActionFinished', this.updateDisabled);
},
beforeDestroy() {
eventHub.$off('graphActionFinished', this.updateDisabled);
},
methods: { methods: {
onClickAction() { onClickAction() {
$(this.$el).tooltip('hide'); $(this.$el).tooltip('hide');
...@@ -57,14 +62,8 @@ export default { ...@@ -57,14 +62,8 @@ export default {
if (actionUrl === this.linkRequested) { if (actionUrl === this.linkRequested) {
this.isDisabled = false; this.isDisabled = false;
} }
}
},
created() {
eventHub.$on('graphActionFinished', this.updateDisabled);
},
beforeDestroy() {
eventHub.$off('graphActionFinished', this.updateDisabled);
}, },
},
}; };
</script> </script>
<template> <template>
...@@ -73,7 +72,8 @@ export default { ...@@ -73,7 +72,8 @@ export default {
@click="onClickAction" @click="onClickAction"
v-tooltip v-tooltip
:title="tooltipText" :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" :class="cssClass"
data-container="body" data-container="body"
:disabled="isDisabled" :disabled="isDisabled"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment