fixed the control-label "Synched with THREDDS"

This commit is contained in:
Francesco Mangiacrapa 2021-05-17 18:19:15 +02:00
parent 996c982b39
commit dc1188cf2b
2 changed files with 5 additions and 2 deletions

View File

@ -294,10 +294,13 @@ public class DialogGetInfoBootstrap extends Composite {
if (fileModel.isDirectory()) { if (fileModel.isDirectory()) {
cgTxtIsPublic.setVisible(true); cgTxtIsPublic.setVisible(true);
htmlSetValue(txtIsPublic, fileModel.isPublic() + ""); htmlSetValue(txtIsPublic, fileModel.isPublic() + "");
GWT.log("Is synched? "+fileModel.getSynchedWithWsThredds());
if (fileModel.getSynchedWithWsThredds() != null) { if (fileModel.getSynchedWithWsThredds() != null) {
if (fileModel.getSynchedWithWsThredds()) { if (fileModel.getSynchedWithWsThredds()) {
txtThreddsSynched.setVisible(true); cgThreddsSynched.setVisible(true);
//txtThreddsSynched.setVisible(true);
htmlSetValue(txtThreddsSynched, fileModel.getSynchedWithWsThredds() + ""); htmlSetValue(txtThreddsSynched, fileModel.getSynchedWithWsThredds() + "");
txtThreddsSynched.setHTML(fileModel.getSynchedWithWsThredds() + ""); txtThreddsSynched.setHTML(fileModel.getSynchedWithWsThredds() + "");
} }

View File

@ -73,7 +73,7 @@
<b:ControlGroup <b:ControlGroup
addStyleNames="my-control-group-get-info" addStyleNames="my-control-group-get-info"
ui:field="cgThreddsSynched" visible="false"> ui:field="cgThreddsSynched" visible="false">
<b:ControlLabel>Synched with Thredds</b:ControlLabel> <b:ControlLabel title="Synched with THREDDS">Synched</b:ControlLabel>
<b:Controls> <b:Controls>
<g:HTML ui:field="txtThreddsSynched"> <g:HTML ui:field="txtThreddsSynched">
</g:HTML> </g:HTML>