New modules and InfiniteScroll init

This commit is contained in:
Matthew Raymer
2023-06-23 18:56:26 +08:00
parent b0fc8818ee
commit 0726a8d3ba
5 changed files with 2626 additions and 2920 deletions

View File

@@ -226,9 +226,10 @@ export default class NewEditProjectView extends Vue {
const serverError = error as AxiosError;
if (serverError) {
this.isAlertVisible = true;
if (serverError.message) {
if (Object.prototype.hasOwnProperty.call(serverError, "message")) {
console.log(serverError);
this.alertTitle = "User Message";
userMessage = serverError.message; // This is info for the user.
userMessage = serverError.response.data.error.message; // This is info for the user.
this.alertMessage = userMessage;
} else {
this.alertTitle = "Server Message";