diff --git a/http-gateway/web/packages/shared-ui b/http-gateway/web/packages/shared-ui index 4db82c2f4..bf374fcfd 160000 --- a/http-gateway/web/packages/shared-ui +++ b/http-gateway/web/packages/shared-ui @@ -1 +1 @@ -Subproject commit 4db82c2f401154de4b94248ff4e909b1dccc015e +Subproject commit bf374fcfd4669607f0f86725767900c9e32b97f6 diff --git a/http-gateway/web/src/routes.tsx b/http-gateway/web/src/routes.tsx index 9d9b90ad2..f919b21f5 100644 --- a/http-gateway/web/src/routes.tsx +++ b/http-gateway/web/src/routes.tsx @@ -491,52 +491,56 @@ export const Routes = (props: { mainSidebar: MenuConfigType }) => { {/* ***** DPS ***** */} - - {/* ***** LINKED HUBS ***** */} - - )} path=':hubId/:tab' /> - )} path=':hubId' /> - )} path='' /> + {mainSidebar.deviceProvisioning === true && ( + + {/* ***** LINKED HUBS ***** */} + + )} path=':hubId/:tab' /> + )} path=':hubId' /> + )} path='' /> + + + {/* ***** ENROLLMENT GROUPS ***** */} + + )} path=':enrollmentId' /> + )} path='' /> + + + {/* ***** PROVISIONING RECORDS ***** */} + + )} path=':recordId/:tab' /> + )} path=':recordId' /> + )} path='' /> + - - {/* ***** ENROLLMENT GROUPS ***** */} - - )} path=':enrollmentId' /> - )} path='' /> - - - {/* ***** PROVISIONING RECORDS ***** */} - - )} path=':recordId/:tab' /> - )} path=':recordId' /> - )} path='' /> - - + )} {/* ***** SNIPPET SERVICE ***** */} - - {/* ***** RESOURCES CONFIGURATION ***** */} - - )} path='add' /> - )} path=':configurationId/:tab' /> - )} path=':configurationId' /> - )} path='' /> + {mainSidebar.snippetService === true && ( + + {/* ***** RESOURCES CONFIGURATION ***** */} + + )} path='add' /> + )} path=':configurationId/:tab' /> + )} path=':configurationId' /> + )} path='' /> + + + {/* ***** CONDITIONS ***** */} + + )} path=':conditionId/:tab' /> + )} path=':conditionId' /> + )} path='' /> + + + {/* ***** APPLIED RESOURCES CONFIGURATION ***** */} + + )} path=':appliedConfigurationId/:tab' /> + )} path=':appliedConfigurationId' /> + )} path='' /> + - - {/* ***** CONDITIONS ***** */} - - )} path=':conditionId/:tab' /> - )} path=':conditionId' /> - )} path='' /> - - - {/* ***** APPLIED RESOURCES CONFIGURATION ***** */} - - )} path=':appliedConfigurationId/:tab' /> - )} path=':appliedConfigurationId' /> - )} path='' /> - - + )} {/* ***** API TOKENS ***** */} {mainSidebar.apiTokens === true && (