Skip to content

Commit 56a9010

Browse files
committed
content explorer to root
1 parent dd05489 commit 56a9010

File tree

4 files changed

+4
-7
lines changed

4 files changed

+4
-7
lines changed

apps/sensenet/src/application-paths.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export const PATHS = {
1010
dashboard: { appPath: '/dashboard' },
1111
contentTypes: { appPath: '/content-types/:browseType/:action?', snPath: '/Root/System/Schema/ContentTypes' },
1212
search: { appPath: '/search' },
13-
content: { appPath: '/content/:browseType/:action?', snPath: '/Root/Content' },
13+
content: { appPath: '/Root', snPath: '/Root' },
1414
contentTemplates: { appPath: '/content-templates/:browseType/:action?', snPath: '/Root/ContentTemplates' },
1515
custom: { appPath: '/custom/:browseType/:path/:action?', snPath: '/Root' },
1616
configuration: { appPath: '/system/settings/:action?', snPath: '/Root/System/Settings' },

apps/sensenet/src/components/tree/StyledTreeItem.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,7 @@ export const StyledTreeItem = (props: StyledTreeItemProps) => {
2727
left: 0,
2828
})
2929
const path = props.contentvalue.Path
30-
const isDisabled = !(
31-
path.includes(enabledPath) && !(enabledPath === PATHS.content.snPath && path === PATHS.contentTemplates.snPath)
32-
)
30+
const isDisabled = !path.includes(enabledPath)
3331

3432
const loadCollectionCB = useCallback(
3533
async (contentPath: string): Promise<void> => {

apps/sensenet/src/hooks/use-drawer-items.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,9 +194,7 @@ export const useDrawerItems = () => {
194194
})
195195

196196
;(async () => {
197-
const allItems = [...settings.drawer.items, ...builtInDrawerItems]
198-
199-
const filtered = await allItems.filterAsync(async (item) => {
197+
const filtered = await builtInDrawerItems.filterAsync(async (item) => {
200198
if (!item.permissions?.length) return true
201199

202200
try {

packages/sn-authentication-oidc-react/src/oidc-service.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,6 @@ export const logoutUser = async (userManager: UserManager) => {
4848
const oidcUser = await userManager.getUser()
4949
if (oidcUser) {
5050
await userManager.signoutRedirect()
51+
window.location.reload()
5152
}
5253
}

0 commit comments

Comments
 (0)