From 015c2317e78303b7982a01cee94d1038cfe613e2 Mon Sep 17 00:00:00 2001 From: Giancarlo Panichi Date: Thu, 1 Oct 2015 13:50:47 +0000 Subject: [PATCH] Fixed ExtractCodelist behavior git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/user/tabular-data-portlet@119311 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../gcube/portlets/user/td/client/ribbon/CurationToolBar.java | 4 +++- .../org/gcube/portlets/user/td/tabulardataportlet.gwt.xml | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/gcube/portlets/user/td/client/ribbon/CurationToolBar.java b/src/main/java/org/gcube/portlets/user/td/client/ribbon/CurationToolBar.java index 5a09098..8016a89 100644 --- a/src/main/java/org/gcube/portlets/user/td/client/ribbon/CurationToolBar.java +++ b/src/main/java/org/gcube/portlets/user/td/client/ribbon/CurationToolBar.java @@ -494,12 +494,14 @@ public class CurationToolBar { denormalizeButton.enable(); normalizeButton.enable(); - extractCodelistButton.enable(); + TRId trId = event.getTrId(); if (trId != null && trId.getTableType() != null && trId.getTableType().compareTo("Codelist") == 0) { + extractCodelistButton.disable(); codelistMappingButton.enable(); } else { + extractCodelistButton.enable(); codelistMappingButton.disable(); } //generateSummaryButton.disable(); diff --git a/src/main/resources/org/gcube/portlets/user/td/tabulardataportlet.gwt.xml b/src/main/resources/org/gcube/portlets/user/td/tabulardataportlet.gwt.xml index 1ca3b92..926718e 100644 --- a/src/main/resources/org/gcube/portlets/user/td/tabulardataportlet.gwt.xml +++ b/src/main/resources/org/gcube/portlets/user/td/tabulardataportlet.gwt.xml @@ -3,6 +3,10 @@ + + +