Commit d1a3567e authored by Florie Guibert's avatar Florie Guibert

Update widget on click dropdown item when creating epic from epic

parent 972ff79d
...@@ -49,6 +49,9 @@ export default { ...@@ -49,6 +49,9 @@ export default {
triggerEvent() { triggerEvent() {
this.$emit(this.selectedItem.eventName); this.$emit(this.selectedItem.eventName);
}, },
change(item) {
this.$emit('change', item);
},
}, },
}; };
</script> </script>
...@@ -69,7 +72,7 @@ export default { ...@@ -69,7 +72,7 @@ export default {
active-class="is-active" active-class="is-active"
@click=" @click="
selectedItem = item; selectedItem = item;
triggerEvent(); change(item);
" "
> >
<strong>{{ item.title }}</strong> <strong>{{ item.title }}</strong>
......
...@@ -22,6 +22,11 @@ export default { ...@@ -22,6 +22,11 @@ export default {
components: { components: {
SplitButton, SplitButton,
}, },
methods: {
change(item) {
this.$emit(item.eventName);
},
},
}; };
</script> </script>
...@@ -33,5 +38,6 @@ export default { ...@@ -33,5 +38,6 @@ export default {
right right
size="sm" size="sm"
v-on="$listeners" v-on="$listeners"
@change="change"
/> />
</template> </template>
...@@ -22,6 +22,11 @@ export default { ...@@ -22,6 +22,11 @@ export default {
components: { components: {
SplitButton, SplitButton,
}, },
methods: {
change(item) {
this.$emit(item.eventName);
},
},
}; };
</script> </script>
...@@ -33,5 +38,6 @@ export default { ...@@ -33,5 +38,6 @@ export default {
right right
size="sm" size="sm"
v-on="$listeners" v-on="$listeners"
@change="change"
/> />
</template> </template>
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