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:
Francesco Mangiacrapa 2019-09-24 09:48:44 +00:00
parent ca9f4b47d3
commit 397e845955
1 changed files with 4 additions and 6 deletions

View File

@ -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,11 +499,9 @@ 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
public void run() {