Navigation: Show starred items in the NavBar (#49219)

* switch saved items to starred items

* hook up redux properly

* Better query + hook up DashList

* update initial state so it's never undefined

* update GetDashboard call

* use new star service

* add scroll + maxwidth to navbar hover menu, sort starred items alphabetically

* increase height, revert changes to CustomScrollbar

* ellipsis!

* update starred dashboard name in navtree

* sort after renaming

* limit to first 50 starred dashboards found
This commit is contained in:
Ashley Harrison
2022-05-23 16:45:46 +01:00
committed by GitHub
parent 8c753999df
commit ce86b4ebe7
10 changed files with 128 additions and 76 deletions

View File

@@ -144,7 +144,7 @@ export default (navBarTree: NavModelItem[]) => {
navBarActionMap.forEach((navBarAction) => {
const navBarItem = navBarTree.find((navBarItem) => navBarItem.url === navBarAction.url);
if (navBarItem && !navBarItem.hideFromNavbar) {
if (navBarItem) {
navBarActions.push(...navBarAction.actions);
}
});