@@ -172,9 +172,9 @@ export default {
return {
networkConfigList: [],
test: {},
- infoMessage: "",
- infoType: "info",
- infoShow: false,
+ alertMessage: "",
+ alertType: "info",
+ showAlert: false,
};
},
created() {
@@ -196,20 +196,18 @@ export default {
method: "POST",
body: formData,
})
+ .then(function (response) {
+ if (response.status != 200) {
+ throw response.status;
+ } else {
+ return response.json();
+ }
+ })
.then(
function (response) {
- if (response.status != 200) {
- throw response.status;
- } else {
- return response.json();
- }
- }.bind(this)
- )
- .then(
- function (response) {
- this.infoMessage = response.message;
- this.infoType = response.type;
- this.infoShow = true;
+ this.alertMessage = response.message;
+ this.alertType = response.type;
+ this.showAlert = true;
}.bind(this)
);
},
diff --git a/webapp/src/components/partials/BootstrapAlert.vue b/webapp/src/components/partials/BootstrapAlert.vue
index 3c9a836e..b73f2cd8 100644
--- a/webapp/src/components/partials/BootstrapAlert.vue
+++ b/webapp/src/components/partials/BootstrapAlert.vue
@@ -1,5 +1,11 @@
-
+