diff options
| author | Alexis Reigel <alexis.reigel.ext@siemens.com> | 2018-07-03 19:28:09 +0200 |
|---|---|---|
| committer | Alexis Reigel <alexis.reigel.ext@siemens.com> | 2018-08-29 15:02:54 +0200 |
| commit | 89b30999c294d2e344d095e635d72aa16d108a2b (patch) | |
| tree | b29241e1c81ff277d8df531071429d924546b4a7 /app/finders/admin | |
| parent | d4387d88767d76666e32feaab9deb48d43b6249a (diff) | |
| download | gitlab-ce-89b30999c294d2e344d095e635d72aa16d108a2b.tar.gz | |
use filtered search bar for admin runners
Diffstat (limited to 'app/finders/admin')
| -rw-r--r-- | app/finders/admin/runners_finder.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/finders/admin/runners_finder.rb b/app/finders/admin/runners_finder.rb index 22dd6e0ce6e..19e1dc5e477 100644 --- a/app/finders/admin/runners_finder.rb +++ b/app/finders/admin/runners_finder.rb @@ -26,8 +26,9 @@ class Admin::RunnersFinder < UnionFinder end def filter_by_status! - if @params[:status].present? && Ci::Runner::AVAILABLE_STATUSES.include?(@params[:status]) - @runners = @runners.public_send(@params[:status]) # rubocop:disable GitlabSecurity/PublicSend + status = @params[:status_status] + if status.present? && Ci::Runner::AVAILABLE_STATUSES.include?(status) + @runners = @runners.public_send(status) # rubocop:disable GitlabSecurity/PublicSend end end |
