You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kie.apache.org by ti...@apache.org on 2023/12/27 17:19:35 UTC

(incubator-kie-tools) branch main updated: kie-issues#513: chrome-extension: DMN Custom data types empty state allows to click on button (#2102)

This is an automated email from the ASF dual-hosted git repository.

tiagobento pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-kie-tools.git


The following commit(s) were added to refs/heads/main by this push:
     new 8708bfcb164 kie-issues#513: chrome-extension: DMN Custom data types empty state allows to click on button (#2102)
8708bfcb164 is described below

commit 8708bfcb1647d1130051d49ea4b5b5bfa33babb5
Author: Kbowers <92...@users.noreply.github.com>
AuthorDate: Wed Dec 27 18:19:30 2023 +0100

    kie-issues#513: chrome-extension: DMN Custom data types empty state allows to click on button (#2102)
    
    Co-authored-by: Kennedy Bowers <ke...@ibm.com>
---
 .../common/dmn/client/editors/types/listview/DataTypeListView.java    | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/packages/stunner-editors/kie-wb-common-dmn/kie-wb-common-dmn-client/src/main/java/org/kie/workbench/common/dmn/client/editors/types/listview/DataTypeListView.java b/packages/stunner-editors/kie-wb-common-dmn/kie-wb-common-dmn-client/src/main/java/org/kie/workbench/common/dmn/client/editors/types/listview/DataTypeListView.java
index d23195f0246..06510cb263c 100644
--- a/packages/stunner-editors/kie-wb-common-dmn/kie-wb-common-dmn-client/src/main/java/org/kie/workbench/common/dmn/client/editors/types/listview/DataTypeListView.java
+++ b/packages/stunner-editors/kie-wb-common-dmn/kie-wb-common-dmn-client/src/main/java/org/kie/workbench/common/dmn/client/editors/types/listview/DataTypeListView.java
@@ -159,7 +159,9 @@ public class DataTypeListView implements DataTypeList.View {
     }
 
     void setupAddButtonReadOnlyStatus() {
-        addButton.disabled = readOnlyProvider.isReadOnlyDiagram();
+        boolean isReadOnly = readOnlyProvider.isReadOnlyDiagram();
+        addButton.disabled = isReadOnly;
+        addButtonPlaceholder.disabled = isReadOnly;
     }
 
     public void importJavaClasses(final List<JavaClass> javaClasses) {


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@kie.apache.org
For additional commands, e-mail: commits-help@kie.apache.org