mobiletto-orm-typedef-gen 2.3.11 → 2.3.13
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.
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
<v-text-field
|
|
65
65
|
v-model="searchTerms"
|
|
66
66
|
:label="messages.label_search"
|
|
67
|
-
:disabled="
|
|
67
|
+
:disabled="{{name}}Store.{{name}}Busy"
|
|
68
68
|
type="text"
|
|
69
69
|
name="searchTerms"
|
|
70
70
|
class="form-control"
|
|
@@ -155,11 +155,11 @@
|
|
|
155
155
|
metaField
|
|
156
156
|
} from "mobiletto-orm-typedef";
|
|
157
157
|
import { {{Name}}Type, {{Name}}TypeDef } from "{{typeDefPackage}}";
|
|
158
|
-
import { findMessage, messageExists, parseMessage } from "hokey-runtime";
|
|
158
|
+
import { findMessage, messageExists, parseMessage{{#unless typeDef.singleton}}, normalizeMsg{{/unless}} } from "hokey-runtime";
|
|
159
159
|
import { useSessionStore } from "{{sessionStoreImport}}";
|
|
160
160
|
import { use{{Name}}Store } from "~/stores/model/{{name}}Store";{{#if typeDef.refTypes}}{{#each typeDef.refTypes}}
|
|
161
161
|
import { use{{RefType}}Store } from "~/stores/model/{{refType}}Store";{{/each}}{{/if}}
|
|
162
|
-
import { deepUpdate
|
|
162
|
+
import { deepUpdate } from "{{adminHelperPath}}";
|
|
163
163
|
{{#unless typeDef.singleton}}
|
|
164
164
|
type ActionConfig = {
|
|
165
165
|
path: string;
|
|
@@ -386,6 +386,10 @@
|
|
|
386
386
|
}
|
|
387
387
|
return true;
|
|
388
388
|
};
|
|
389
|
+
const delObject = async (obj: MobilettoOrmObject) => {
|
|
390
|
+
const id = {{Name}}TypeDef.id(obj);
|
|
391
|
+
return await {{name}}Store.delete(id, delete{{Name}}ServerErrors);
|
|
392
|
+
};
|
|
389
393
|
watch({{name}}List, (newList) => {
|
|
390
394
|
if (newList && Array.isArray(newList) && newList.length === 0 && searchTerms.value && searchTerms.value.length === 0) {
|
|
391
395
|
if (navigating.value) return;
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
<v-text-field
|
|
65
65
|
v-model="searchTerms"
|
|
66
66
|
:label="messages.label_search"
|
|
67
|
-
:disabled="
|
|
67
|
+
:disabled="{{name}}Store.{{name}}Busy"
|
|
68
68
|
type="text"
|
|
69
69
|
name="searchTerms"
|
|
70
70
|
class="form-control"
|
|
@@ -155,11 +155,11 @@
|
|
|
155
155
|
metaField
|
|
156
156
|
} from "mobiletto-orm-typedef";
|
|
157
157
|
import { {{Name}}Type, {{Name}}TypeDef } from "{{typeDefPackage}}";
|
|
158
|
-
import { findMessage, messageExists, parseMessage } from "hokey-runtime";
|
|
158
|
+
import { findMessage, messageExists, parseMessage{{#unless typeDef.singleton}}, normalizeMsg{{/unless}} } from "hokey-runtime";
|
|
159
159
|
import { useSessionStore } from "{{sessionStoreImport}}";
|
|
160
160
|
import { use{{Name}}Store } from "~/stores/model/{{name}}Store";{{#if typeDef.refTypes}}{{#each typeDef.refTypes}}
|
|
161
161
|
import { use{{RefType}}Store } from "~/stores/model/{{refType}}Store";{{/each}}{{/if}}
|
|
162
|
-
import { deepUpdate
|
|
162
|
+
import { deepUpdate } from "{{adminHelperPath}}";
|
|
163
163
|
{{#unless typeDef.singleton}}
|
|
164
164
|
type ActionConfig = {
|
|
165
165
|
path: string;
|
|
@@ -386,6 +386,10 @@
|
|
|
386
386
|
}
|
|
387
387
|
return true;
|
|
388
388
|
};
|
|
389
|
+
const delObject = async (obj: MobilettoOrmObject) => {
|
|
390
|
+
const id = {{Name}}TypeDef.id(obj);
|
|
391
|
+
return await {{name}}Store.delete(id, delete{{Name}}ServerErrors);
|
|
392
|
+
};
|
|
389
393
|
watch({{name}}List, (newList) => {
|
|
390
394
|
if (newList && Array.isArray(newList) && newList.length === 0 && searchTerms.value && searchTerms.value.length === 0) {
|
|
391
395
|
if (navigating.value) return;
|