瀏覽代碼

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 年之前
父節點
當前提交
b5681c748c
共有 2 個文件被更改,包括 8 次插入2 次删除
  1. 4 1
      esp/src/eclwatch/ClusterProcessesQueryWidget.js
  2. 4 1
      esp/src/eclwatch/TargetClustersQueryWidget.js

+ 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,