@drax/crud-vue 0.44.1 → 0.46.0
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.
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "0.
|
|
6
|
+
"version": "0.46.0",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"main": "./src/index.ts",
|
|
9
9
|
"module": "./src/index.ts",
|
|
@@ -24,10 +24,10 @@
|
|
|
24
24
|
"format": "prettier --write src/"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@drax/common-front": "^0.
|
|
28
|
-
"@drax/crud-front": "^0.
|
|
29
|
-
"@drax/crud-share": "^0.
|
|
30
|
-
"@drax/media-vue": "^0.
|
|
27
|
+
"@drax/common-front": "^0.46.0",
|
|
28
|
+
"@drax/crud-front": "^0.46.0",
|
|
29
|
+
"@drax/crud-share": "^0.46.0",
|
|
30
|
+
"@drax/media-vue": "^0.46.0"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"pinia": "^2.2.2",
|
|
@@ -64,5 +64,5 @@
|
|
|
64
64
|
"vue-tsc": "^2.1.10",
|
|
65
65
|
"vuetify": "^3.8.2"
|
|
66
66
|
},
|
|
67
|
-
"gitHead": "
|
|
67
|
+
"gitHead": "9625999c86d538dc3bee7c501acba6c51592ebca"
|
|
68
68
|
}
|
package/src/EntityCrud.ts
CHANGED
|
@@ -325,7 +325,8 @@ export function useCrud(entity: IEntityCrud) {
|
|
|
325
325
|
try {
|
|
326
326
|
store.setLoading(true)
|
|
327
327
|
if (entity?.provider.update) {
|
|
328
|
-
|
|
328
|
+
const identifier = formData[entity?.identifier] || getItemId(formData)
|
|
329
|
+
let item = await entity?.provider.update(identifier, toRaw(formData))
|
|
329
330
|
await doPaginate()
|
|
330
331
|
closeDialog()
|
|
331
332
|
store.showMessage("Entity updated successfully!")
|
|
@@ -351,7 +352,8 @@ export function useCrud(entity: IEntityCrud) {
|
|
|
351
352
|
try {
|
|
352
353
|
store.setLoading(true)
|
|
353
354
|
if (entity?.provider.delete) {
|
|
354
|
-
|
|
355
|
+
const identifier = formData[entity?.identifier] || getItemId(formData)
|
|
356
|
+
await entity?.provider.delete(identifier)
|
|
355
357
|
await doPaginate()
|
|
356
358
|
closeDialog()
|
|
357
359
|
store.showMessage("Entity deleted successfully!")
|