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