diff --git a/CHANGELOG.md b/CHANGELOG.md index 2de5dc2..3109500 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,12 +4,15 @@ All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## [v2.1.3-SNAPSHOT] - 2021-03-19 +## [v2.2.0-NAPSHOT] - 2021-03-19 ### Bug fixes [#20991] Conflict with Bootstrap Modal fixed +Added a new behavior by selecting an input folder and +being able to navigate from the Workspace Root + ## [v2.1.2] - 2019-12-19 diff --git a/pom.xml b/pom.xml index ce607f3..92d674b 100644 --- a/pom.xml +++ b/pom.xml @@ -10,7 +10,7 @@ 4.0.0 org.gcube.portlets.widgets workspace-explorer - 2.1.3-SNAPSHOT + 2.2.0-SNAPSHOT gCube Workspace Explorer gCube Workspace Explorer widget allows to navigate (gCube) Workspace diff --git a/src/main/java/org/gcube/portlets/widgets/wsexplorer/client/explore/WorkspaceResourcesEnhancedExplorerPanel.java b/src/main/java/org/gcube/portlets/widgets/wsexplorer/client/explore/WorkspaceResourcesEnhancedExplorerPanel.java index 5e41f2e..d1fc0f1 100644 --- a/src/main/java/org/gcube/portlets/widgets/wsexplorer/client/explore/WorkspaceResourcesEnhancedExplorerPanel.java +++ b/src/main/java/org/gcube/portlets/widgets/wsexplorer/client/explore/WorkspaceResourcesEnhancedExplorerPanel.java @@ -353,7 +353,7 @@ public class WorkspaceResourcesEnhancedExplorerPanel extends DockPanel implement if(item.isFolder()){ try { wsExplorer.loadFolder(item, true, ITEM_START_INDEX, ITEMS_PER_PAGE, true); - loadParentBreadcrumbByItemId(item.getId(), true); + loadParentBreadcrumbByItemId(item.getId(), true, null); clearMoreInfo(); } catch (Exception e) { GWT.log(e.getMessage()); @@ -381,11 +381,11 @@ public class WorkspaceResourcesEnhancedExplorerPanel extends DockPanel implement * @param itemIdentifier the item identifier * @param includeItemAsParent the include item as parent */ - protected void loadParentBreadcrumbByItemId(final String itemIdentifier, boolean includeItemAsParent){ + protected void loadParentBreadcrumbByItemId(final String itemIdentifier, boolean includeItemAsParent, String parentLimit){ GWT.log("Reload Parent Breadcrumb: [Item id: "+itemIdentifier+"]"); - WorkspaceExplorerConstants.workspaceNavigatorService.getBreadcrumbsByItemIdentifierToParentLimit(itemIdentifier, folderId, includeItemAsParent, new AsyncCallback>() { + WorkspaceExplorerConstants.workspaceNavigatorService.getBreadcrumbsByItemIdentifierToParentLimit(itemIdentifier, parentLimit, includeItemAsParent, new AsyncCallback>() { @Override public void onFailure(Throwable caught) {