@platform-mesh/portal-ui-lib 0.72.0 → 0.73.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/assets/platform-mesh-portal-ui-wc.js +771 -770
- package/fesm2022/platform-mesh-portal-ui-lib-portal-options.mjs +5 -1
- package/fesm2022/platform-mesh-portal-ui-lib-portal-options.mjs.map +1 -1
- package/fesm2022/platform-mesh-portal-ui-lib-services.mjs +12 -1
- package/fesm2022/platform-mesh-portal-ui-lib-services.mjs.map +1 -1
- package/package.json +4 -3
- package/types/platform-mesh-portal-ui-lib-portal-options.d.ts +1 -0
- package/types/platform-mesh-portal-ui-lib-services.d.ts +1 -0
|
@@ -5,7 +5,7 @@ import '@ui5/webcomponents/dist/Breadcrumbs.js';
|
|
|
5
5
|
import '@ui5/webcomponents/dist/BreadcrumbsItem.js';
|
|
6
6
|
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
7
7
|
import { ALL_NAMESPACE, kcpRootOrgsPath } from '@platform-mesh/portal-ui-lib/models';
|
|
8
|
-
import { ResourceService, GatewayService, AccountInfoService, InstancePermissionsService, OrganizationReadyService,
|
|
8
|
+
import { ResourceService, GatewayService, ErrorHandlerService, AccountInfoService, InstancePermissionsService, OrganizationReadyService, NamespaceService } from '@platform-mesh/portal-ui-lib/services';
|
|
9
9
|
import { isNamespacedResource, generateGraphQLFields, mergeListWithSubscriptionResult, permissionKey } from '@platform-mesh/portal-ui-lib/utils';
|
|
10
10
|
import '@ui5/webcomponents/dist/ComboBox.js';
|
|
11
11
|
import { Subject, defer, of, firstValueFrom } from 'rxjs';
|
|
@@ -1271,10 +1271,14 @@ class NodeChangeHookConfigServiceImpl {
|
|
|
1271
1271
|
constructor() {
|
|
1272
1272
|
this.luigiCoreService = inject(LuigiCoreService);
|
|
1273
1273
|
this.crdGatewayKcpPatchResolver = inject(CrdGatewayKcpPatchResolver);
|
|
1274
|
+
this.errorHandlerService = inject(ErrorHandlerService);
|
|
1274
1275
|
this.persistentPanelService = inject(PersistentPanelService);
|
|
1275
1276
|
this.namespacedResourceSelectionService = inject(NamespacedResourceSelectionService);
|
|
1276
1277
|
}
|
|
1277
1278
|
async nodeChangeHook(prevNode, nextNode, currentContext) {
|
|
1279
|
+
if (this.errorHandlerService.navigateToErrorPageIfForbidden(nextNode.context?.entityErrorCode)) {
|
|
1280
|
+
return;
|
|
1281
|
+
}
|
|
1278
1282
|
this.namespacedResourceSelectionService.restoreNamespaceSearchParam(nextNode, currentContext);
|
|
1279
1283
|
const updatePersistentPanelTarget = this.persistentPanelService.beginTargetUpdate();
|
|
1280
1284
|
if (nextNode.initialRoute && nextNode.virtualTree) {
|