Browse Source

Merge pull request #12853 from miguelvazq/ImproveSelection

HPCC-22620 Only allow certain checkboxes in preflight components

Reviewed-By: Gordon Smith <gordon.smith@lexisnexis.com>
Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman 5 years ago
parent
commit
b5681c748c

+ 4 - 1
esp/src/eclwatch/ClusterProcessesQueryWidget.js

@@ -135,7 +135,10 @@ define([
                 columns: {
                     col1: selector({
                         width: 20,
-                        selectorType: 'checkbox'
+                        selectorType: 'checkbox',
+                        disabled: function (item) {
+                            return item.type === "clusterProcess";
+                        }
                     }),
                     Configuration: {
                         label: this.i18n.Configuration,

+ 4 - 1
esp/src/eclwatch/TargetClustersQueryWidget.js

@@ -122,7 +122,10 @@ define([
                 columns: {
                     col1: selector({
                         width: 20,
-                        selectorType: 'checkbox'
+                        selectorType: 'checkbox',
+                        disabled: function (item) {
+                            return item.type !== "targetClusterProcess";
+                        }
                     }),
                     Configuration: {
                         label: this.i18n.Configuration,