mobiletto-orm-typedef-gen 2.3.30 → 2.3.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -338,7 +338,7 @@
|
|
|
338
338
|
deepUpdate(addObject.value, update.field, update.value);
|
|
339
339
|
};
|
|
340
340
|
const onAddSubmitted = async (obj: MobilettoOrmObject) => {
|
|
341
|
-
await {{name}}Store
|
|
341
|
+
addObject.value = await {{name}}Store
|
|
342
342
|
.create(obj as {{Name}}Type, create{{Name}}ServerErrors);
|
|
343
343
|
addingObject.value = false;
|
|
344
344
|
successSnackbar.value = parseMessage(props.msgAddSuccess, messages.value, {
|
|
@@ -402,6 +402,7 @@
|
|
|
402
402
|
if (obj) {
|
|
403
403
|
const id = {{Name}}TypeDef.id(obj);
|
|
404
404
|
if (id && id.length > 0) {
|
|
405
|
+
addingObject.value = false; // ensure add form is closed
|
|
405
406
|
editingObject.value = JSON.parse(JSON.stringify(obj)) as {{Name}}Type;
|
|
406
407
|
}
|
|
407
408
|
}
|
|
@@ -338,7 +338,7 @@
|
|
|
338
338
|
deepUpdate(addObject.value, update.field, update.value);
|
|
339
339
|
};
|
|
340
340
|
const onAddSubmitted = async (obj: MobilettoOrmObject) => {
|
|
341
|
-
await {{name}}Store
|
|
341
|
+
addObject.value = await {{name}}Store
|
|
342
342
|
.create(obj as {{Name}}Type, create{{Name}}ServerErrors);
|
|
343
343
|
addingObject.value = false;
|
|
344
344
|
successSnackbar.value = parseMessage(props.msgAddSuccess, messages.value, {
|
|
@@ -402,6 +402,7 @@
|
|
|
402
402
|
if (obj) {
|
|
403
403
|
const id = {{Name}}TypeDef.id(obj);
|
|
404
404
|
if (id && id.length > 0) {
|
|
405
|
+
addingObject.value = false; // ensure add form is closed
|
|
405
406
|
editingObject.value = JSON.parse(JSON.stringify(obj)) as {{Name}}Type;
|
|
406
407
|
}
|
|
407
408
|
}
|