Rename isLoading to isLoadingVulnerability

parent 91d59c17
......@@ -30,13 +30,13 @@ export default {
},
data: () => ({
isLoading: false,
isLoadingVulnerability: false,
isCreatingIssue: false,
}),
methods: {
onVulnerabilityStateChange(newState) {
this.isLoading = true;
this.isLoadingVulnerability = true;
axios
.post(`/api/v4/vulnerabilities/${this.vulnerability.id}/${newState}`)
......@@ -50,7 +50,7 @@ export default {
);
})
.finally(() => {
this.isLoading = false;
this.isLoadingVulnerability = false;
});
},
createIssue() {
......@@ -80,7 +80,7 @@ export default {
<template>
<div>
<gl-loading-icon v-if="isLoading" />
<gl-loading-icon v-if="isLoadingVulnerability" />
<vulnerability-state-dropdown
v-else
:state="vulnerability.state"
......
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