All URL now are shorten
git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/user/workspace-tree-widget@181832 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
ca9f4b47d3
commit
397e845955
|
@ -407,7 +407,7 @@ public class DialogShareableLink extends Composite {
|
|||
private String getValidURL(PublicLink publicLink) {
|
||||
|
||||
if(publicLink==null)
|
||||
return "Error on getting a valid shareble link";
|
||||
return "Error on getting a valid shareable link";
|
||||
|
||||
return publicLink.getShortURL() != null && !publicLink.getShortURL().isEmpty()
|
||||
? publicLink.getShortURL()
|
||||
|
@ -499,10 +499,8 @@ public class DialogShareableLink extends Composite {
|
|||
return;
|
||||
}
|
||||
|
||||
|
||||
textPublicLink.setValue(publicLink.getCompleteURL());
|
||||
// txtShortURL.setValue(publicLink.getShortURL());
|
||||
// selectTxt();
|
||||
String validURL = getValidURL(publicLink);
|
||||
textPublicLink.setValue(validURL);
|
||||
|
||||
Timer t = new Timer() {
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue