diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-07-10 02:11:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-10 02:11:45 +0200 |
commit | 038836c41ca8c27289de4d40259f49818ba8cfbb (patch) | |
tree | 3bebeb3bd7abbc3a414704fc4d3116d0600e3d34 /apps/settings | |
parent | 4fc77eca47947e833f371253d80db0cc0cad4fbf (diff) | |
parent | d04a22109353a66f3f56764526f06faad069d821 (diff) | |
download | nextcloud-server-038836c41ca8c27289de4d40259f49818ba8cfbb.tar.gz nextcloud-server-038836c41ca8c27289de4d40259f49818ba8cfbb.zip |
Merge pull request #46370 from nextcloud/refactor/app-menu
refactor: split app menu into smaller components
Diffstat (limited to 'apps/settings')
-rw-r--r-- | apps/settings/src/components/AppStoreDiscover/AppLink.vue | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/apps/settings/src/components/AppStoreDiscover/AppLink.vue b/apps/settings/src/components/AppStoreDiscover/AppLink.vue index 1ce19ad7319..703adb9f041 100644 --- a/apps/settings/src/components/AppStoreDiscover/AppLink.vue +++ b/apps/settings/src/components/AppStoreDiscover/AppLink.vue @@ -18,12 +18,10 @@ import { loadState } from '@nextcloud/initial-state' import { generateUrl } from '@nextcloud/router' import { defineComponent } from 'vue' import { RouterLink } from 'vue-router' +import type { INavigationEntry } from '../../../../../core/src/types/navigation' -const knownRoutes = Object.fromEntries( - Object.entries( - loadState<Record<string, { app?: string, href: string }>>('core', 'apps'), - ).map(([k, v]) => [v.app ?? k, v.href]), -) +const apps = loadState<INavigationEntry[]>('core', 'apps') +const knownRoutes = Object.fromEntries(apps.map((app) => [app.app ?? app.id, app.href])) /** * This component either shows a native link to the installed app or external size - or a router link to the appstore page of the app if not installed |