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);
if(itemId!=null){
// 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);
updateItemSubmitForm(itemId);
}

View File

@ -44,7 +44,7 @@ public class MultipleDilaogUpload extends DialogUpload {
private String idFolder;
private UPLOAD_TYPE type;
/**
* Instantiates a new multiple dilaog upload stream.
@ -245,7 +245,7 @@ public class MultipleDilaogUpload extends DialogUpload {
// HANDLE OWERWRITE
if (Window
.confirm(label
+ " exists in folder. Overwrite?")) {
+ " exists in folder. If you continue, a new version will be created")) {
removeItemAndSubmitForm(itemId);
updateItemSubmitForm(itemId);
}

View File

@ -684,7 +684,7 @@ public class MultipleDNDUpload extends LayoutPanel implements HasWorskpaceUpload
console.log("response overwrite: " + response);
if(response!=null && response!=undefined){
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;
console.log("overwrite confirmed!");
}else{