Commit 976e22e6 authored by Matija Čupić's avatar Matija Čupić

Use strings for @scope in ClustersController#index

parent 85e4e70d
......@@ -7,7 +7,7 @@ class Projects::ClustersController < Projects::ApplicationController
before_action :authorize_admin_cluster!, only: [:destroy]
def index
@scope = params[:scope] || :all
@scope = params[:scope] || 'all'
clusters = ClustersFinder.new(project, current_user, @scope).execute
@clusters = clusters.page(params[:page]).per(20)
@active_count = project.clusters.enabled.count
......
......@@ -16,7 +16,7 @@
- @clusters.each do |cluster|
= render "cluster", cluster: cluster
= paginate @clusters, theme: "gitlab"
- elsif @scope == :all
- elsif @scope == 'all'
= render "empty_state"
- else
= render "tabs"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment