wacom 20.5.3 → 20.5.5
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/fesm2022/wacom.mjs +7 -3
- package/fesm2022/wacom.mjs.map +1 -1
- package/package.json +1 -1
package/fesm2022/wacom.mjs
CHANGED
|
@@ -1264,7 +1264,8 @@ class CrudComponent {
|
|
|
1264
1264
|
update(doc) {
|
|
1265
1265
|
this.__form.modal(this.form, {
|
|
1266
1266
|
label: 'Update',
|
|
1267
|
-
click: (updated) => {
|
|
1267
|
+
click: (updated, close) => {
|
|
1268
|
+
close();
|
|
1268
1269
|
this.__core.copy(updated, doc);
|
|
1269
1270
|
this.crudService.update(doc);
|
|
1270
1271
|
this.__cdr.markForCheck();
|
|
@@ -2456,14 +2457,17 @@ class StoreService {
|
|
|
2456
2457
|
* @returns A promise that resolves to the retrieved value.
|
|
2457
2458
|
*/
|
|
2458
2459
|
async getJson(key, callback, errCallback = () => { }) {
|
|
2459
|
-
const value = await this.get(key
|
|
2460
|
+
const value = await this.get(key);
|
|
2460
2461
|
if (value === null) {
|
|
2461
2462
|
return null;
|
|
2462
2463
|
}
|
|
2463
2464
|
try {
|
|
2464
|
-
|
|
2465
|
+
const result = JSON.parse(value);
|
|
2466
|
+
callback?.(result);
|
|
2467
|
+
return result;
|
|
2465
2468
|
}
|
|
2466
2469
|
catch (err) {
|
|
2470
|
+
errCallback?.(err);
|
|
2467
2471
|
console.error(err);
|
|
2468
2472
|
return null;
|
|
2469
2473
|
}
|