mobiletto-orm-typedef-gen 2.3.27 → 2.3.28
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.
|
@@ -395,7 +395,7 @@
|
|
|
395
395
|
if (Object.keys(edit{{Name}}ServerErrors).length > 0) {
|
|
396
396
|
errorSnackbar.value = parseMessage(props.msgEditError, messages.value, {
|
|
397
397
|
type: messages.value.typename_{{typeDef.typeName}},
|
|
398
|
-
id: {{Name}}TypeDef.id(
|
|
398
|
+
id: {{Name}}TypeDef.id(editingObject.value),
|
|
399
399
|
error: JSON.stringify(edit{{Name}}ServerErrors),
|
|
400
400
|
});
|
|
401
401
|
}
|
|
@@ -429,8 +429,13 @@
|
|
|
429
429
|
showAddOrm();
|
|
430
430
|
}
|
|
431
431
|
});
|
|
432
|
-
watch(findSingleton{{Name}}ServerErrors, (
|
|
433
|
-
|
|
432
|
+
watch(findSingleton{{Name}}ServerErrors, () => {
|
|
433
|
+
if (Object.keys(findSingleton{{Name}}ServerErrors).length > 0) {
|
|
434
|
+
errorSnackbar.value = parseMessage(props.msgFindSingletonError, messages.value, {
|
|
435
|
+
type: messages.value.typename_{{typeDef.typeName}},
|
|
436
|
+
error: JSON.stringify(findSingleton{{Name}}ServerErrors),
|
|
437
|
+
});
|
|
438
|
+
}
|
|
434
439
|
});{{else}}
|
|
435
440
|
const actionConfig = (action: string) => {
|
|
436
441
|
return props.actionConfigs[action];
|
|
@@ -395,7 +395,7 @@
|
|
|
395
395
|
if (Object.keys(edit{{Name}}ServerErrors).length > 0) {
|
|
396
396
|
errorSnackbar.value = parseMessage(props.msgEditError, messages.value, {
|
|
397
397
|
type: messages.value.typename_{{typeDef.typeName}},
|
|
398
|
-
id: {{Name}}TypeDef.id(
|
|
398
|
+
id: {{Name}}TypeDef.id(editingObject.value),
|
|
399
399
|
error: JSON.stringify(edit{{Name}}ServerErrors),
|
|
400
400
|
});
|
|
401
401
|
}
|
|
@@ -429,8 +429,13 @@
|
|
|
429
429
|
showAddOrm();
|
|
430
430
|
}
|
|
431
431
|
});
|
|
432
|
-
watch(findSingleton{{Name}}ServerErrors, (
|
|
433
|
-
|
|
432
|
+
watch(findSingleton{{Name}}ServerErrors, () => {
|
|
433
|
+
if (Object.keys(findSingleton{{Name}}ServerErrors).length > 0) {
|
|
434
|
+
errorSnackbar.value = parseMessage(props.msgFindSingletonError, messages.value, {
|
|
435
|
+
type: messages.value.typename_{{typeDef.typeName}},
|
|
436
|
+
error: JSON.stringify(findSingleton{{Name}}ServerErrors),
|
|
437
|
+
});
|
|
438
|
+
}
|
|
434
439
|
});{{else}}
|
|
435
440
|
const actionConfig = (action: string) => {
|
|
436
441
|
return props.actionConfigs[action];
|