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