Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
QA on library #108
  • Loading branch information
mahfouzhseineweev committed May 26, 2023
commit c0ac519b91267df0e2239092d9b4330294829e8b
6 changes: 5 additions & 1 deletion lib/src/components/Sections/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1025,6 +1025,7 @@ export default {
}
},
updatePageMetaData() {
this.loading = true
this.metadataErrors.path[0] = ''

const sections = [];
Expand Down Expand Up @@ -1077,6 +1078,7 @@ export default {
this.$axios
.put(URL, variables, config)
.then((res) => {
this.loading = false
if (res.data && res.data.error) {
this.showToast("error", "error", res.data.error);
return;
Expand All @@ -1093,6 +1095,7 @@ export default {
}
})
.catch((error) => {
this.loading = false
if(error.response.data.errors) {
this.metadataErrors = error.response.data.errors
} else {
Expand All @@ -1103,7 +1106,6 @@ export default {
error.response.data.options
);
}
this.loading = false;
});

},
Expand Down Expand Up @@ -1277,7 +1279,9 @@ export default {
this.pageNotFound = false;
this.sectionsPageLastUpdated = res.data.last_updated;
this.pageId = res.data.id;
this.sectionsPageName = res.data.page;
this.pagePath = res.data.path;
this.allSections = []
this.showToast(
"Success",
"success",
Expand Down