diff --git a/src/apps/dashboard/components/drawer/sections/AdvancedDrawerSection.tsx b/src/apps/dashboard/components/drawer/sections/AdvancedDrawerSection.tsx index 5718825d3d..d8f78d1c27 100644 --- a/src/apps/dashboard/components/drawer/sections/AdvancedDrawerSection.tsx +++ b/src/apps/dashboard/components/drawer/sections/AdvancedDrawerSection.tsx @@ -77,12 +77,13 @@ const AdvancedDrawerSection = () => { - + - - - diff --git a/src/components/ListItemLink.tsx b/src/components/ListItemLink.tsx index 0e0206a4d0..57242134b1 100644 --- a/src/components/ListItemLink.tsx +++ b/src/components/ListItemLink.tsx @@ -4,6 +4,8 @@ import { Link, useLocation, useSearchParams } from 'react-router-dom'; interface ListItemLinkProps extends ListItemButtonBaseProps { to: string + includePaths?: string[] + excludePaths?: string[] } const isMatchingParams = (routeParams: URLSearchParams, currentParams: URLSearchParams) => { @@ -19,6 +21,8 @@ const isMatchingParams = (routeParams: URLSearchParams, currentParams: URLSearch const ListItemLink: FC = ({ children, to, + includePaths = [], + excludePaths = [], ...params }) => { const location = useLocation(); @@ -27,8 +31,11 @@ const ListItemLink: FC = ({ const [ toPath, toParams ] = to.split('?'); // eslint-disable-next-line compat/compat const toSearchParams = new URLSearchParams(`?${toParams}`); + const selectedPaths = [ toPath, ...includePaths ]; - const selected = location.pathname === toPath && (!toParams || isMatchingParams(toSearchParams, searchParams)); + const selected = selectedPaths.includes(location.pathname) + && !excludePaths.includes(location.pathname + location.search) + && (!toParams || isMatchingParams(toSearchParams, searchParams)); return (
+
+

${TabCatalog}

+ + + + + ${Help} + +
diff --git a/src/controllers/dashboard/plugins/installed/index.html b/src/controllers/dashboard/plugins/installed/index.html index a1f74453de..e44dcbe2a3 100644 --- a/src/controllers/dashboard/plugins/installed/index.html +++ b/src/controllers/dashboard/plugins/installed/index.html @@ -1,6 +1,12 @@
+
+

${TabMyPlugins}

+ + ${Help} + +
diff --git a/src/styles/dashboard.scss b/src/styles/dashboard.scss index dbd6b9bbfd..93bab1048f 100644 --- a/src/styles/dashboard.scss +++ b/src/styles/dashboard.scss @@ -156,7 +156,8 @@ div[data-role=controlgroup] a.ui-btn-active { padding-left: 1em; } -.content-primary ul:first-child { +.content-primary ul:first-child, +.type-interior .content-primary > .sectionTitleContainer { margin-top: 0; }