diff options
-rw-r--r-- | app/controllers/projects/clusters_controller.rb | 2 | ||||
-rw-r--r-- | app/views/projects/clusters/index.html.haml | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/projects/clusters_controller.rb b/app/controllers/projects/clusters_controller.rb index 48c88bc9b0d..c24b413b51e 100644 --- a/app/controllers/projects/clusters_controller.rb +++ b/app/controllers/projects/clusters_controller.rb @@ -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 diff --git a/app/views/projects/clusters/index.html.haml b/app/views/projects/clusters/index.html.haml index 958b6f08ee0..4dd956971ae 100644 --- a/app/views/projects/clusters/index.html.haml +++ b/app/views/projects/clusters/index.html.haml @@ -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" |