updating refresh on move

git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/user/workspace@173298 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Francesco Mangiacrapa 2018-10-12 09:56:44 +00:00
parent 8b00a4d36f
commit 8470e4aeb7
1 changed files with 17 additions and 15 deletions

View File

@ -1966,7 +1966,9 @@ public class AppController implements SubscriberInterface {
if(refreshingTheTree){ if(refreshingTheTree){
wsPortlet.getGridGroupContainer().unmask(); wsPortlet.getGridGroupContainer().unmask();
}else{ //FORCE GRID REFRESH }else{
//FORCE GRID REFRESH
FileModel theFolder = wsPortlet.getToolBarPath().getParentFolder(destinationFolderId); FileModel theFolder = wsPortlet.getToolBarPath().getParentFolder(destinationFolderId);
GWT.log("moveEventIsCompleted tree is not refreshable"); GWT.log("moveEventIsCompleted tree is not refreshable");
@ -1979,20 +1981,20 @@ public class AppController implements SubscriberInterface {
}else{ }else{
//MOVING HAS BEEN PERFORMED IN A FOLDER MISSING IN THE BREADCRUMB, SO LOADING IT A NEW ONE //MOVING HAS BEEN PERFORMED IN A FOLDER MISSING IN THE BREADCRUMB, SO LOADING IT A NEW ONE
//FOR DISPLAYING //FOR DISPLAYING
GWT.log("Loading grid on the parent folder of: "+destinationFolderId); // GWT.log("Loading grid on the parent folder of: "+destinationFolderId);
//
AppControllerExplorer.rpcWorkspaceService.getParentByItemId(destinationFolderId, new AsyncCallback<FileModel>() { // AppControllerExplorer.rpcWorkspaceService.getParentByItemId(destinationFolderId, new AsyncCallback<FileModel>() {
//
@Override // @Override
public void onFailure(Throwable caught) { // public void onFailure(Throwable caught) {
//
} // }
//
@Override // @Override
public void onSuccess(FileModel result) { // public void onSuccess(FileModel result) {
loadFolder(result); // loadFolder(result);
} // }
}); // });
} }
} }