Skip to content

Commit

Permalink
enabled workbench
Browse files Browse the repository at this point in the history
  • Loading branch information
jagankumar-egov committed Mar 13, 2024
1 parent a7d54e9 commit 49aa4ec
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
22 changes: 11 additions & 11 deletions micro-ui/web/packages/core/src/modules/registerRemotes.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ export default (queryClient) => {
const userType = Digit.UserService.getType();


// registerApplication({
// name: "Workbench",
// app: () => import("workbench/WorkbenchModule"),
// activeWhen: `/${window.contextPath ? window.contextPath : "core-digit-ui"}/employee/workbench`,
// customProps: {
// title: "Workbench is running on host",
// queryClient,
// userType
// },
// });
registerApplication({
name: "Workbench",
app: () => import("workbench/WorkbenchModule"),
activeWhen: `/${window.contextPath ? window.contextPath : "core-digit-ui"}/employee/workbench`,
customProps: {
title: "Workbench is running on host",
queryClient,
userType
},
});


// registerApplication({
Expand All @@ -35,7 +35,7 @@ export default (queryClient) => {
// registerApplication({
// name: "PGR",
// app: () => import("pgr/PGRModule"),
// activeWhen: `/${window.contextPath ? window.contextPath : "core-digit-ui"}/employee/pgr`,
// activeWhen: `/${window.contextPath ? window.contextPath : "core-digit-ui"}/employee/pgr/`,
// customProps: {
// title: "PGR is running on host",
// queryClient,
Expand Down
2 changes: 1 addition & 1 deletion micro-ui/web/packages/core/webpack.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ module.exports = () => {
hrms: `hrms@${domain}/hrms-ui/remoteEntry.js`,
// common: `common@${domain}/common-ui/remoteEntry.js`,
// pgr: `pgr@${domain}/pgr-ui/remoteEntry.js`,
// workbench : `workbench@${domain}/workbench-mfe/remoteEntry.js`,
workbench : `workbench@${domain}/workbench-mfe/remoteEntry.js`,
// dss : `dss@${domain}/dss-ui/remoteEntry.js`,
// measurement : `measurement@${domain}/measurement/remoteEntry.js`
},
Expand Down
2 changes: 1 addition & 1 deletion micro-ui/web/packages/pgr/src/PGRWrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const App = ({ queryClient, title,userType }) => {
return (
<QueryClientProvider client={queryClient}>
<Router>
<EmployeeApp path={`/${window.contextPath}/${userType}/pgr`} />
<EmployeeApp path={`/${window.contextPath}/${userType}/pgr/`} />
</Router>
</QueryClientProvider>
);
Expand Down

0 comments on commit 49aa4ec

Please sign in to comment.