aboutsummaryrefslogtreecommitdiffstats
path: root/apps/theming/src/components/admin/AppMenuSection.vue
diff options
context:
space:
mode:
authorFerdinand Thiessen <opensource@fthiessen.de>2024-07-10 02:11:45 +0200
committerGitHub <noreply@github.com>2024-07-10 02:11:45 +0200
commit038836c41ca8c27289de4d40259f49818ba8cfbb (patch)
tree3bebeb3bd7abbc3a414704fc4d3116d0600e3d34 /apps/theming/src/components/admin/AppMenuSection.vue
parent4fc77eca47947e833f371253d80db0cc0cad4fbf (diff)
parentd04a22109353a66f3f56764526f06faad069d821 (diff)
downloadnextcloud-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/theming/src/components/admin/AppMenuSection.vue')
-rw-r--r--apps/theming/src/components/admin/AppMenuSection.vue7
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/theming/src/components/admin/AppMenuSection.vue b/apps/theming/src/components/admin/AppMenuSection.vue
index 2bcb6903bdc..fb8fdc67f98 100644
--- a/apps/theming/src/components/admin/AppMenuSection.vue
+++ b/apps/theming/src/components/admin/AppMenuSection.vue
@@ -30,6 +30,8 @@
</template>
<script lang="ts">
+import type { INavigationEntry } from '../../../../../core/src/types/navigation'
+
import { showError } from '@nextcloud/dialogs'
import { loadState } from '@nextcloud/initial-state'
import { translate as t } from '@nextcloud/l10n'
@@ -75,9 +77,8 @@ export default defineComponent({
/**
* All enabled apps which can be navigated
*/
- const allApps = Object.values(
- loadState<Record<string, { id: string, name?: string, icon: string }>>('core', 'apps'),
- ).map(({ id, name, icon }) => ({ label: name, id, icon }))
+ const allApps = loadState<INavigationEntry[]>('core', 'apps')
+ .map(({ id, name, icon }) => ({ label: name, id, icon }))
/**
* Currently selected app, wrapps the setter