removed Well in ui.xml
git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/widgets/catalogue-sharing-widget@146524 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
6a2147492f
commit
ef4a34008d
|
@ -7,7 +7,6 @@ import com.github.gwtbootstrap.client.ui.Form;
|
|||
import com.github.gwtbootstrap.client.ui.Icon;
|
||||
import com.github.gwtbootstrap.client.ui.Modal;
|
||||
import com.github.gwtbootstrap.client.ui.TextBox;
|
||||
import com.github.gwtbootstrap.client.ui.Well;
|
||||
import com.google.gwt.core.client.GWT;
|
||||
import com.google.gwt.uibinder.client.UiBinder;
|
||||
import com.google.gwt.uibinder.client.UiField;
|
||||
|
@ -27,9 +26,6 @@ public class ShareCatalogueWidget extends Composite {
|
|||
public static final ShareServicesAsync ckanServices = GWT.create(ShareServices.class);
|
||||
|
||||
public static final String SERVICE_UNAVAILABLE = "The service is currently unavailable, retry later";
|
||||
|
||||
@UiField
|
||||
Well loadingIconWell;
|
||||
|
||||
@UiField
|
||||
Icon loadingIcon;
|
||||
|
@ -70,7 +66,7 @@ public class ShareCatalogueWidget extends Composite {
|
|||
|
||||
}else{
|
||||
|
||||
loadingIconWell.setVisible(false);
|
||||
loadingIcon.setVisible(false);
|
||||
formWithInformation.setVisible(true);
|
||||
itemShortUrl.setText(result.getShortUrl() == null ? "" : result.getShortUrl());
|
||||
itemLongUrl.setText(result.getUrl() == null ? "" : result.getUrl());
|
||||
|
@ -92,7 +88,7 @@ public class ShareCatalogueWidget extends Composite {
|
|||
|
||||
private void onError(String msg) {
|
||||
|
||||
loadingIconWell.setVisible(false);
|
||||
loadingIcon.setVisible(false);
|
||||
formWithInformation.setVisible(false);
|
||||
errorBlock.setText(SERVICE_UNAVAILABLE + (msg == null ? "" : "(" + msg + ")"));
|
||||
errorBlock.setVisible(true);
|
||||
|
|
|
@ -5,10 +5,8 @@
|
|||
<b:Modal ui:field="modalShareLink" title="Item's information"
|
||||
backdrop="STATIC" keyboard="true" animation="true">
|
||||
<g:VerticalPanel width="100%">
|
||||
|
||||
<b:Well size="LARGE" visible="true" ui:field="loadingIconWell" width="100%">
|
||||
<b:Icon type="COG" size="FOUR_TIMES" spin="true" ui:field="loadingIcon" />
|
||||
</b:Well>
|
||||
|
||||
<b:Icon type="COG" size="FOUR_TIMES" spin="true" ui:field="loadingIcon" visible="true"/>
|
||||
|
||||
<!-- Alert blocks for info/errors -->
|
||||
<b:AlertBlock type="ERROR" close="false" animation="true"
|
||||
|
|
Loading…
Reference in New Issue