diff options
author | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-07-08 16:23:52 +0200 |
---|---|---|
committer | Ferdinand Thiessen <opensource@fthiessen.de> | 2024-07-10 01:35:24 +0200 |
commit | a96b5940dd9d80c6ea6fbb5faa6ef7d1a7cc6734 (patch) | |
tree | b6d0368a9e25c52dfcbb28f8a816dfbfd77f4ff8 /core/src | |
parent | 4fc77eca47947e833f371253d80db0cc0cad4fbf (diff) | |
download | nextcloud-server-a96b5940dd9d80c6ea6fbb5faa6ef7d1a7cc6734.tar.gz nextcloud-server-a96b5940dd9d80c6ea6fbb5faa6ef7d1a7cc6734.zip |
chore: Make active apps initial state consistent with OCS API
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/types/navigation.d.ts | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/core/src/types/navigation.d.ts b/core/src/types/navigation.d.ts new file mode 100644 index 00000000000..5698aab205e --- /dev/null +++ b/core/src/types/navigation.d.ts @@ -0,0 +1,30 @@ +/*! + * SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors + * SPDX-License-Identifier: AGPL-3.0-or-later + */ + +/** See NavigationManager */ +export interface INavigationEntry { + /** Navigation id */ + id: string + /** If this is the currently active app */ + active: boolean + /** Order where this entry should be shown */ + order: number + /** Target of the navigation entry */ + href: string + /** The icon used for the naviation entry */ + icon: string + /** Type of the navigation entry ('link' vs 'settings') */ + type: 'link' | 'settings' + /** Localized name of the navigation entry */ + name: string + /** Whether this is the default app */ + default?: boolean + /** App that registered this navigation entry (not necessarly the same as the id) */ + app?: string + /** If this app has unread notification */ + unread: number + /** True when the link should be opened in a new tab */ + target?: boolean +} |