diff options
author | Mario de la Ossa <mariodelaossa@gmail.com> | 2017-12-19 15:24:36 -0600 |
---|---|---|
committer | Mario de la Ossa <mariodelaossa@gmail.com> | 2017-12-27 09:23:09 -0600 |
commit | f88d5974bbc3646587a9c15e9054e63fdb746a20 (patch) | |
tree | d47dad649fb20509121cd1983f2524828a3280b4 /app/controllers | |
parent | 3d56d93fc53308ad384a0aa22df970b58ea543e9 (diff) | |
download | gitlab-ce-f88d5974bbc3646587a9c15e9054e63fdb746a20.tar.gz |
Add pause/resume button to specific project runners
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/projects/runners_controller.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/controllers/projects/runners_controller.rb b/app/controllers/projects/runners_controller.rb index 9f9773575a5..c950d0f7001 100644 --- a/app/controllers/projects/runners_controller.rb +++ b/app/controllers/projects/runners_controller.rb @@ -29,17 +29,17 @@ class Projects::RunnersController < Projects::ApplicationController def resume if Ci::UpdateRunnerService.new(@runner).update(active: true) - redirect_to runner_path(@runner), notice: 'Runner was successfully updated.' + redirect_to runners_path(@project), notice: 'Runner was successfully updated.' else - redirect_to runner_path(@runner), alert: 'Runner was not updated.' + redirect_to runners_path(@project), alert: 'Runner was not updated.' end end def pause if Ci::UpdateRunnerService.new(@runner).update(active: false) - redirect_to runner_path(@runner), notice: 'Runner was successfully updated.' + redirect_to runners_path(@project), notice: 'Runner was successfully updated.' else - redirect_to runner_path(@runner), alert: 'Runner was not updated.' + redirect_to runners_path(@project), alert: 'Runner was not updated.' end end |