diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2017-11-25 00:00:06 +0300 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2017-11-25 00:08:15 +0300 |
commit | 1b40a9f803f33bc16852a907c1ff8269e956c1f6 (patch) | |
tree | cb6ef13376d1e372a891f1a442ee676b0c774ff7 /app/controllers/projects/clusters_controller.rb | |
parent | 54cf7dacdf3fac38161f0e962640543166715eb4 (diff) |
Handle toggle button with API request
Add tests
Update empty state
[ci skip]
Diffstat (limited to 'app/controllers/projects/clusters_controller.rb')
-rw-r--r-- | app/controllers/projects/clusters_controller.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/controllers/projects/clusters_controller.rb b/app/controllers/projects/clusters_controller.rb index 37271c4708d..19dbffed5bb 100644 --- a/app/controllers/projects/clusters_controller.rb +++ b/app/controllers/projects/clusters_controller.rb @@ -8,6 +8,8 @@ class Projects::ClustersController < Projects::ApplicationController def index @clusters ||= project.clusters.page(params[:page]).per(20).map { |cluster| cluster.present(current_user: current_user) } + + @clusters_count = @clusters.count end def login |