diff --git a/component/core/src/main/java/io/meeds/social/navigation/plugin/PageSidebarPlugin.java b/component/core/src/main/java/io/meeds/social/navigation/plugin/PageSidebarPlugin.java index 9a98981ebd4..e5dc8c330a2 100644 --- a/component/core/src/main/java/io/meeds/social/navigation/plugin/PageSidebarPlugin.java +++ b/component/core/src/main/java/io/meeds/social/navigation/plugin/PageSidebarPlugin.java @@ -104,9 +104,6 @@ public static SidebarItem resolveProperties(NavigationService navigationService, Long.parseLong(nodeId), locale)); item.setTarget(node.getState().getTarget()); - if (node.getState() != null && node.getState().getIcon() != null) { - item.setIcon(node.getState().getIcon()); - } SiteKey siteKey = node.getState().getSiteKey(); PortalConfig site = layoutService.getPortalConfig(siteKey); if (site != null) { diff --git a/component/core/src/main/java/io/meeds/social/navigation/plugin/SiteSidebarPlugin.java b/component/core/src/main/java/io/meeds/social/navigation/plugin/SiteSidebarPlugin.java index 6a1915460c5..383dd0f4cb2 100644 --- a/component/core/src/main/java/io/meeds/social/navigation/plugin/SiteSidebarPlugin.java +++ b/component/core/src/main/java/io/meeds/social/navigation/plugin/SiteSidebarPlugin.java @@ -128,35 +128,29 @@ public SidebarItem resolveProperties(SidebarItem item, String username, Locale l .get(SITE_TYPE_PROP_NAME), item.getProperties() .get(SITE_NAME_PROP_NAME))); - if (rootNode != null && rootNode.getSize() > 0) { - NodeContext> firstNode = rootNode.get(0); - if (firstNode.getData() != null - && firstNode.getData().getState() != null - && firstNode.getData().getState().getIcon() != null) { - item.setIcon(firstNode.getData().getState().getIcon()); - } - if (StringUtils.equals(item.getProperties().get(SITE_EXPAND_PAGES_PROP_NAME), "true")) { - Collection> nodes = rootNode.getNodes(); - item.setItems(new ArrayList<>()); - nodes.forEach(node -> { - if (node.getData() != null - && node.getData().getState() != null - && isVisibilityEligible(node.getData().getState())) { - SidebarItem pageItem = new SidebarItem(SidebarItemType.PAGE); - pageItem.setProperties(Collections.singletonMap(NODE_ID_PROP_NAME, node.getData().getId())); - pageItem.setUrl(node.getData().getName()); - PageSidebarPlugin.resolveProperties(navigationService, - layoutService, - translationService, - descriptionService, - resourceBundleManager, - localeConfigService, - pageItem, - locale); - item.getItems().add(pageItem); - } - }); - } + if (rootNode != null + && rootNode.getSize() > 0 + && StringUtils.equals(item.getProperties().get(SITE_EXPAND_PAGES_PROP_NAME), "true")) { + Collection> nodes = rootNode.getNodes(); + item.setItems(new ArrayList<>()); + nodes.forEach(node -> { + if (node.getData() != null + && node.getData().getState() != null + && isVisibilityEligible(node.getData().getState())) { + SidebarItem pageItem = new SidebarItem(SidebarItemType.PAGE); + pageItem.setProperties(Collections.singletonMap(NODE_ID_PROP_NAME, node.getData().getId())); + pageItem.setUrl(node.getData().getName()); + PageSidebarPlugin.resolveProperties(navigationService, + layoutService, + translationService, + descriptionService, + resourceBundleManager, + localeConfigService, + pageItem, + locale); + item.getItems().add(pageItem); + } + }); } return item; } diff --git a/webapp/src/main/resources/locale/portlet/GeneralSettings_en.properties b/webapp/src/main/resources/locale/portlet/GeneralSettings_en.properties index 0f88274290a..632c36b5bfe 100644 --- a/webapp/src/main/resources/locale/portlet/GeneralSettings_en.properties +++ b/webapp/src/main/resources/locale/portlet/GeneralSettings_en.properties @@ -239,7 +239,7 @@ generalSettings.sidebar.spacesNamesPlaceHolder=Menu item name generalSettings.sidebar.spacesNamesDrawerTitle=Add Menu item translations generalSettings.sidebar.spacesSelectLimit=Select number of items to list generalSettings.sidebar.linkName=Name -generalSettings.sidebar.linkDescription=Description +generalSettings.sidebar.linkDescription=Tooltip generalSettings.sidebar.linkLabel=Link generalSettings.sidebar.linkIcon=Update the icon generalSettings.sidebar.linkTarget=Opens in same tab diff --git a/webapp/src/main/webapp/vue-apps/general-settings/components/navigation/sidebar/drawer/NavigationSettingsAddSidebarSiteDrawer.vue b/webapp/src/main/webapp/vue-apps/general-settings/components/navigation/sidebar/drawer/NavigationSettingsAddSidebarSiteDrawer.vue index 10ee0936beb..2ff4ce25ac0 100644 --- a/webapp/src/main/webapp/vue-apps/general-settings/components/navigation/sidebar/drawer/NavigationSettingsAddSidebarSiteDrawer.vue +++ b/webapp/src/main/webapp/vue-apps/general-settings/components/navigation/sidebar/drawer/NavigationSettingsAddSidebarSiteDrawer.vue @@ -95,6 +95,10 @@ outlined dense /> +