Skip to content

Commit

Permalink
Merge pull request #5951 from brionmario/legacy-mode-migration
Browse files Browse the repository at this point in the history
Add `apiResourcesV1` & `apiResourcesV2` DEV configs
  • Loading branch information
brionmario authored Apr 12, 2024
2 parents 03e69f1 + e882bc3 commit 2b99452
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .changeset/four-seals-smash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@wso2is/console": patch
"@wso2is/features": patch
---

Add `apiResourcesV1` & `apiResourcesV2` to DEV config
3 changes: 2 additions & 1 deletion apps/console/src/public/deployment.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -1121,7 +1121,8 @@
"administratorRoleDisplayName": "Administrator",
"useRoleClaimAsGroupClaim": false,
"legacyMode": {
"apiResources": true,
"apiResourcesV1": false,
"apiResourcesV2": true,
"applicationListSystemApps": false,
"applicationOIDCSubjectIdentifier": true,
"applicationRequestPathAuthentication": false,
Expand Down
4 changes: 2 additions & 2 deletions features/admin.extensions.v1/configs/common.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@

import { UserGroupIcon } from "@oxygen-ui/react-icons";
import { LegacyModeInterface, RouteInterface } from "@wso2is/core/models";
import { APIResourcesConstants } from "features/admin.api-resources.v1/constants";
import React, { lazy } from "react";
import { CommonConfig } from "./models";
import { APIResourcesConstants } from "../../admin.api-resources.v1/constants";
import { getSidePanelIcons } from "../../admin.core.v1/configs/ui";
import { AppConstants } from "../../admin.core.v1/constants";

Expand Down Expand Up @@ -240,7 +240,7 @@ export const commonConfig: CommonConfig = {
order: 2,
path: AppConstants.getPaths().get("API_RESOURCES"),
protected: true,
showOnSidePanel: legacyMode?.apiResourcesV1
showOnSidePanel: legacyMode?.apiResourcesV2
});
}

Expand Down

0 comments on commit 2b99452

Please sign in to comment.