Commit 86ba2909 authored by Kev's avatar Kev

Move $emit in header.vue changeVulnerabilityState

parent 03e88e9e
...@@ -126,6 +126,7 @@ export default { ...@@ -126,6 +126,7 @@ export default {
Api.changeVulnerabilityState(this.vulnerability.id, newState) Api.changeVulnerabilityState(this.vulnerability.id, newState)
.then(({ data }) => { .then(({ data }) => {
Object.assign(this.vulnerability, data); Object.assign(this.vulnerability, data);
this.$emit('vulnerability-state-change');
}) })
.catch(() => { .catch(() => {
createFlash( createFlash(
...@@ -136,7 +137,6 @@ export default { ...@@ -136,7 +137,6 @@ export default {
}) })
.finally(() => { .finally(() => {
this.isLoadingVulnerability = false; this.isLoadingVulnerability = false;
this.$emit('vulnerability-state-change', newState);
}); });
}, },
createMergeRequest() { createMergeRequest() {
......
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