diff --git a/Resources/translations/universal_discovery_widget.en.xliff b/Resources/translations/universal_discovery_widget.en.xliff index 74bf5734..0ff9f282 100644 --- a/Resources/translations/universal_discovery_widget.en.xliff +++ b/Resources/translations/universal_discovery_widget.en.xliff @@ -11,6 +11,11 @@ Bookmarks key: bookmarks.label + + Root Location + Root Location + key: breadcrumbs.root_location + Browse Browse diff --git a/src/modules/universal-discovery/bookmarks.tab.module.js b/src/modules/universal-discovery/bookmarks.tab.module.js index f8b01084..db0d37e4 100644 --- a/src/modules/universal-discovery/bookmarks.tab.module.js +++ b/src/modules/universal-discovery/bookmarks.tab.module.js @@ -12,6 +12,7 @@ import { LoadedLocationsMapContext, SortingContext, SortOrderContext, + RootLocationIdContext, } from './universal.discovery.module'; import { loadAccordionData } from './services/universal.discovery.service'; @@ -26,6 +27,7 @@ const BookmarksTabModule = () => { const [markedLocation, setMarkedLocation] = useContext(MarkedLocationContext); const [sorting, setSorting] = useContext(SortingContext); const [sortOrder, setSortOrder] = useContext(SortOrderContext); + const rootLocationId = useContext(RootLocationIdContext); const [loadedLocationsMap, dispatchLoadedLocationsAction] = useContext(LoadedLocationsMapContext); const [bookmarkedLocationMarked, setBookmarkedLocationMarked] = useState(null); const renderBrowseLocations = () => { @@ -49,6 +51,7 @@ const BookmarksTabModule = () => { sortClause: sorting, sortOrder: sortOrder, gridView: currentView === 'grid', + rootLocationId, }, (locationsMap) => { dispatchLoadedLocationsAction({ type: 'SET_LOCATIONS', data: locationsMap }); diff --git a/src/modules/universal-discovery/components/breadcrumbs/breadcrumbs.js b/src/modules/universal-discovery/components/breadcrumbs/breadcrumbs.js index d5bf1290..a859abc6 100644 --- a/src/modules/universal-discovery/components/breadcrumbs/breadcrumbs.js +++ b/src/modules/universal-discovery/components/breadcrumbs/breadcrumbs.js @@ -42,23 +42,28 @@ const Breadcrumbs = () => { 'c-breadcrumbs__hidden-list': true, 'c-breadcrumbs__hidden-list--visible': hiddenListVisible, }); - const toggletClassNames = createCssClassNames({ + const toggleClassNames = createCssClassNames({ 'c-breadcrumbs__hidden-list-toggler': true, 'c-breadcrumbs__hidden-list-toggler--active': hiddenListVisible, }); return (
-