Updated Overwrite message.. due to File Versioning

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/widgets/workspace-uploader@144065 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Francesco Mangiacrapa 2017-02-22 10:38:12 +00:00
parent b445d6e202
commit b2c55f8972
3 changed files with 4 additions and 4 deletions

View File

@ -290,7 +290,7 @@ public class DialogUpload extends ClosableDialog implements HasWorskpaceUploadNo
GWT.log("itemExistsInWorkpaceFolder: "+itemId); GWT.log("itemExistsInWorkpaceFolder: "+itemId);
if(itemId!=null){ if(itemId!=null){
// HANDLE OWERWRITE // HANDLE OWERWRITE
if(Window.confirm(label + " exists in folder. Overwrite?")){ if(Window.confirm(label + " exists in folder. If you continue, a new version will be created")){
removeItemAndSubmitForm(itemId); removeItemAndSubmitForm(itemId);
updateItemSubmitForm(itemId); updateItemSubmitForm(itemId);
} }

View File

@ -245,7 +245,7 @@ public class MultipleDilaogUpload extends DialogUpload {
// HANDLE OWERWRITE // HANDLE OWERWRITE
if (Window if (Window
.confirm(label .confirm(label
+ " exists in folder. Overwrite?")) { + " exists in folder. If you continue, a new version will be created")) {
removeItemAndSubmitForm(itemId); removeItemAndSubmitForm(itemId);
updateItemSubmitForm(itemId); updateItemSubmitForm(itemId);
} }

View File

@ -684,7 +684,7 @@ public class MultipleDNDUpload extends LayoutPanel implements HasWorskpaceUpload
console.log("response overwrite: " + response); console.log("response overwrite: " + response);
if(response!=null && response!=undefined){ if(response!=null && response!=undefined){
console.log("overwrite confirm?"); console.log("overwrite confirm?");
if($wnd.confirm(files[i].name+" exists in folder. Overwrite?")){ if($wnd.confirm(files[i].name+" exists in folder. If you continue, a new version will be created")){
overwrite = true; overwrite = true;
console.log("overwrite confirmed!"); console.log("overwrite confirmed!");
}else{ }else{