Skip to content

Commit dee3bcf

Browse files
committed
wip
1 parent 6af01df commit dee3bcf

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

app/controllers/ops_controller/settings/cap_and_u.rb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,15 +113,13 @@ def cu_collection_fetch
113113

114114
clusters = []
115115
@edit[:current].each do |key, value|
116-
if key.is_a?(Numeric) && value != []
116+
if key.is_a?(Numeric)
117117
clusters << value
118-
elsif key.is_a?(Numeric) && value == []
119-
clusters << key
120118
end
121119
end
122120
hosts = []
123121
clusters.each do |cluster|
124-
if !cluster.is_a?(Numeric) && !cluster.empty?
122+
if !cluster.empty?
125123
cluster.each do |host|
126124
hosts << host
127125
end

app/javascript/components/settings-cu-collection/index.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ const SettingsCUCollectionTab = ({
4747
{parseLabel(node.text)}
4848
</span>,
4949
showCheckbox: !isDatastore || node.nodes !== undefined || depth === 0,
50+
disabled: !isDatastore && !node.nodes && depth === 0,
5051
};
5152

5253
let icon;

0 commit comments

Comments
 (0)