diff --git a/src/pages/Gallery/gallery.vue b/src/pages/Gallery/gallery.vue
index 8a9a498..026543a 100644
--- a/src/pages/Gallery/gallery.vue
+++ b/src/pages/Gallery/gallery.vue
@@ -226,9 +226,12 @@
close
-
+
-
+
@@ -794,7 +797,7 @@ export default {
description: this.addGallery.description,
upload: this.addGallery.upload
};
- // this.loading = true;
+ this.loading = true;
http()
.post("/createGallery", galleryData)
.then(response => {
@@ -811,6 +814,7 @@ export default {
this.loading = false;
});
} else if (this.addGallery.youTubeLinkUrl) {
+ this.loading = true;
http()
.post("/createGallery", this.addGallery)
.then(response => {
@@ -823,9 +827,9 @@ export default {
this.files = "";
})
.catch(error => {
- if ((this.snackbar = true)) {
- this.text = error.response.data.message;
- }
+ this.snackbar = true;
+ this.text = error.response.data.message;
+ this.loading = false;
});
}
}