@messaia/cdk 13.3.6-rc15 → 13.3.6-rc16
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/esm2020/lib/base/components/generic-list.component.mjs +10 -9
- package/esm2020/lib/base/interfaces/igeneric-list-component.mjs +1 -1
- package/fesm2015/messaia-cdk.mjs +9 -8
- package/fesm2015/messaia-cdk.mjs.map +1 -1
- package/fesm2020/messaia-cdk.mjs +9 -8
- package/fesm2020/messaia-cdk.mjs.map +1 -1
- package/lib/base/components/generic-list.component.d.ts +2 -2
- package/lib/base/interfaces/igeneric-list-component.d.ts +1 -1
- package/package.json +1 -1
package/fesm2020/messaia-cdk.mjs
CHANGED
|
@@ -7436,7 +7436,7 @@ class GenericListComponent extends BaseComponent {
|
|
|
7436
7436
|
* @param includes Includes some navigations
|
|
7437
7437
|
* @param successCallback A callback function to e called on success
|
|
7438
7438
|
*/
|
|
7439
|
-
_patch(id, fields, value, includes, successCallback
|
|
7439
|
+
_patch(id, fields, value, includes, successCallback) {
|
|
7440
7440
|
this.isSaving = true;
|
|
7441
7441
|
/* Get entity by ID */
|
|
7442
7442
|
let entity = this.dataSource.items?.filter(x => x.id === id)[0];
|
|
@@ -7446,13 +7446,14 @@ class GenericListComponent extends BaseComponent {
|
|
|
7446
7446
|
/* Send request */
|
|
7447
7447
|
this.service
|
|
7448
7448
|
.patch(id, patches, null, { headers: { 'Show-Message': 'Yes' }, params: includes ? Utils.toHttpParams({ includes: includes }) : null })
|
|
7449
|
-
.subscribe(
|
|
7450
|
-
|
|
7451
|
-
|
|
7452
|
-
|
|
7453
|
-
|
|
7454
|
-
|
|
7455
|
-
|
|
7449
|
+
.subscribe({
|
|
7450
|
+
next: (x) => {
|
|
7451
|
+
this.isSaving = false;
|
|
7452
|
+
if (successCallback) {
|
|
7453
|
+
successCallback(x);
|
|
7454
|
+
}
|
|
7455
|
+
}, error: (_) => this.isSaving = false
|
|
7456
|
+
});
|
|
7456
7457
|
}
|
|
7457
7458
|
}
|
|
7458
7459
|
/**
|