From 8708bfcb1647d1130051d49ea4b5b5bfa33babb5 Mon Sep 17 00:00:00 2001 From: Kbowers <92726146+kbowers-ibm@users.noreply.github.com> Date: Wed, 27 Dec 2023 18:19:30 +0100 Subject: [PATCH] kie-issues#513: chrome-extension: DMN Custom data types empty state allows to click on button (#2102) Co-authored-by: Kennedy Bowers --- .../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 void init(final DataTypeList presenter) { } void setupAddButtonReadOnlyStatus() { - addButton.disabled = readOnlyProvider.isReadOnlyDiagram(); + boolean isReadOnly = readOnlyProvider.isReadOnlyDiagram(); + addButton.disabled = isReadOnly; + addButtonPlaceholder.disabled = isReadOnly; } public void importJavaClasses(final List javaClasses) {