Commit a1114554 authored by Martin Wortschack's avatar Martin Wortschack

Merge branch '205311-rename-isloading-prop' into 'master'

Rename isLoading to isLoadingVulnerability

See merge request gitlab-org/gitlab!26375
parents 9eaf5818 a6ca252f
......@@ -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