Enabled dataset export on SDMX registry

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-portlet@144411 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Giancarlo Panichi 2017-02-28 14:02:17 +00:00
parent a072a23b8d
commit 411ceba63e
2 changed files with 4 additions and 7 deletions

View File

@ -600,14 +600,13 @@ public class FileToolBar {
// importJSONButton.disable(); // importJSONButton.disable();
importSDMXButton.enable(); importSDMXButton.enable();
TRId trId = event.getTrId(); TRId trId = event.getTrId();
//|| trId
//.getTableTypeName().compareTo(
// TableType.DATASET.getTableTypeLabel()) == 0
if (trId != null if (trId != null
&& trId.getTableTypeName() != null && trId.getTableTypeName() != null
&& (trId.getTableTypeName().compareTo( && (trId.getTableTypeName().compareTo(
TableType.CODELIST.getTableTypeLabel()) == 0)) { TableType.CODELIST.getTableTypeLabel()) == 0 || trId
.getTableTypeName().compareTo(
TableType.DATASET.getTableTypeLabel()) == 0)) {
exportSDMXButton.enable(); exportSDMXButton.enable();
} else { } else {
exportSDMXButton.disable(); exportSDMXButton.disable();

View File

@ -29,7 +29,6 @@
.aui fieldset { .aui fieldset {
padding: 9px !important; padding: 9px !important;
/* margin: 0; */
border: 1px solid rgb(181, 184, 200) !important; border: 1px solid rgb(181, 184, 200) !important;
} }
@ -49,4 +48,3 @@