This commit is contained in:
2019-04-08 21:20:48 +00:00
parent b758cdad9a
commit 75291261a5
4 changed files with 7 additions and 8 deletions

View File

@@ -4,7 +4,6 @@ import router from "../router";
import auth from "./auth";
import errorHandler from "./errorhandler";
function stringifyPrimitive(v) {
switch (typeof v) {
case "string":

View File

@@ -271,6 +271,7 @@ export default {
///////////////////////////////
// SERVER ERRORS
// Process and return server errors if any for form and field specified
//
ServerErrors(v, ref) {
//CHECK PREREQUISITES IN DEV MODE TO ENSURE FORM ISN"T MISSING NEEDED DATA ATTRIBUTES ETC
if (v.$gzdevmode()) {
@@ -350,6 +351,7 @@ export default {
///////////////////////////////
// ClearServerErrors
// Clear all server errors and app errors and ensure error box doesn't show
//
DeleteAllErrorBoxErrors(v) {
//clear all keys from server error
v.$gzutil.RemoveAllPropertiesFromObject(v.serverError);
@@ -361,6 +363,7 @@ export default {
///////////////////////////////
// SetErrorBoxErrors
// Gather server errors and set the appropriate keys
//
SetErrorBoxErrors(v) {
var errs = this.ServerErrors(v, "errorbox");
var ret = GetErrorBoxErrors(v, errs);
@@ -369,6 +372,7 @@ export default {
///////////////////////////////
// On Change handler
// This is required so that server errors can be cleared when input is changed
//
Change(v, ref) {
if (triggeringChange) {
return;

View File

@@ -126,7 +126,7 @@
</template>
<script>
/* eslint-disable */
/* xeslint-disable */
export default {
beforeCreate() {
@@ -210,7 +210,6 @@ export default {
//clear any errors that might be around from previous submit
this.$gzv.DeleteAllErrorBoxErrors(this);
//this.$gzutil.RemoveAllPropertiesFromObject(this.serverError);
this.$gzapi
.upsert(url, this.obj)
@@ -287,4 +286,4 @@ IN JS FORMAT
]
}
}
*/
*/