This commit is contained in:
2023-02-27 14:52:01 +10:00
parent aeb7939c6e
commit c8e49ba49c
71 changed files with 958 additions and 1358 deletions

View File

@@ -52,10 +52,10 @@ const defaultFormObject: FormObject = {
});
return valid;
}.bind(this),
},
loading: function (state = true) {
this._loading = state;
}.bind(this),
},
message: function (message = "", type = "", icon = "") {
this._message = message;
@@ -65,14 +65,14 @@ const defaultFormObject: FormObject = {
if (icon.length > 0) {
this._messageIcon = icon;
}
}.bind(this),
},
error: function (message = "") {
if (message == "") {
this.message("");
} else {
this.message(message, "error", "alert-circle-outline");
}
}.bind(this),
},
apiErrors: function (apiResponse: ApiResponse) {
let foundKeys = false;
@@ -102,7 +102,7 @@ const defaultFormObject: FormObject = {
"An unknown server error occurred.\nPlease try again later."
);
}
}.bind(this),
},
controls: {},
_loading: false,