@elite.framework/ng.ui.core 2.0.1 → 2.0.3
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/elite.framework-ng.ui.core-generic-crud-table.mjs +4 -1
- package/fesm2022/elite.framework-ng.ui.core-generic-crud-table.mjs.map +1 -1
- package/fesm2022/elite.framework-ng.ui.core-generic-view.mjs +2 -2
- package/fesm2022/elite.framework-ng.ui.core-generic-view.mjs.map +1 -1
- package/package.json +5 -5
|
@@ -458,11 +458,14 @@ class GenericCrudTableComponent {
|
|
|
458
458
|
if (this.supportSubPage) {
|
|
459
459
|
this.route.paramMap.subscribe(params => {
|
|
460
460
|
const id = params.get(this.idField);
|
|
461
|
-
if (id) {
|
|
461
|
+
if (id && id !== 'new' && id !== 'create' && id !== 'add') {
|
|
462
462
|
this.currentId = id;
|
|
463
463
|
this.mode = 'detail';
|
|
464
464
|
this.loadDetail(id);
|
|
465
465
|
}
|
|
466
|
+
else if (id == 'new' || id == 'create' || id == 'add') {
|
|
467
|
+
this.mode = 'detail';
|
|
468
|
+
}
|
|
466
469
|
else {
|
|
467
470
|
this.currentId = undefined;
|
|
468
471
|
}
|