Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions packages/web-app-files/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@
}

export const navItems = (context: ComponentCustomProperties): AppNavigationItem[] => {
const currentPath = window.location.pathname

Check warning on line 47 in packages/web-app-files/src/index.ts

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Prefer `globalThis` over `window`.

See more on https://sonarcloud.io/project/issues?id=owncloud_web&issues=AZzScfjUdkAOxn-Jer1S&open=AZzScfjUdkAOxn-Jer1S&pullRequest=13621
const isVault = currentPath.startsWith('/vault')
const spacesStores = useSpacesStore()
const userStore = useUserStore()
const capabilityStore = useCapabilityStore()
Expand All @@ -52,7 +54,7 @@
return [
{
name() {
return $gettext('Personal')
return isVault ? $gettext('Safe-Personal') : $gettext('Personal')
},
icon: appInfo.icon,
route: {
Expand Down Expand Up @@ -108,7 +110,7 @@
priority: 30
},
{
name: $gettext('Spaces'),
name: isVault ? $gettext('Safe-Spaces') : $gettext('Spaces'),
icon: 'layout-grid',
route: {
path: `/${appInfo.id}/spaces/projects`
Expand Down