@messaia/cdk 20.0.0-RC.14 → 20.0.0-RC.15
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/messaia-cdk.mjs
CHANGED
|
@@ -18795,6 +18795,11 @@ class GenericListComponent extends BaseComponent {
|
|
|
18795
18795
|
this.onEdit(entity, context);
|
|
18796
18796
|
}
|
|
18797
18797
|
else {
|
|
18798
|
+
/* If the item is not editable, log a warning and return */
|
|
18799
|
+
if (this.canEditItem(entity) === false) {
|
|
18800
|
+
this.log('This item is not editable.');
|
|
18801
|
+
return;
|
|
18802
|
+
}
|
|
18798
18803
|
/* If onEdit is not provided, construct the edit route and navigate */
|
|
18799
18804
|
const hasParams = Object.keys(this.route.snapshot.queryParams).length > 0;
|
|
18800
18805
|
/* Navigate to the edit page with the entity's id and optional query parameters */
|