Fix mixup with enabled/disabled in ClustersFinder
This commit is contained in:
parent
efc610d32b
commit
48b2563e63
1 changed files with 2 additions and 2 deletions
|
@ -9,9 +9,9 @@ class ClustersFinder
|
|||
clusters = case @scope
|
||||
when :all
|
||||
project.clusters
|
||||
when :disabled
|
||||
project.clusters.enabled
|
||||
when :enabled
|
||||
project.clusters.enabled
|
||||
when :disabled
|
||||
project.clusters.disabled
|
||||
end
|
||||
clusters.map { |cluster| cluster.present(current_user: @user) }
|
||||
|
|
Loading…
Reference in a new issue