diff options
author | Grzegorz Bizon <grzegorz@gitlab.com> | 2017-12-29 10:29:20 +0000 |
---|---|---|
committer | Grzegorz Bizon <grzegorz@gitlab.com> | 2017-12-29 10:29:20 +0000 |
commit | 7f8c8dad8618574217dd96c38b40abcea387c4ea (patch) | |
tree | 47bc2cd8fc858f12dea7f0491f8161c442c79ae8 /app/controllers | |
parent | a3f2bd8a1929e03b43dbdbdcf3b94887d38d4afe (diff) | |
parent | f88d5974bbc3646587a9c15e9054e63fdb746a20 (diff) | |
download | gitlab-ce-7f8c8dad8618574217dd96c38b40abcea387c4ea.tar.gz |
Merge branch '20035-pause-resume-runners' into 'master'
Add pause/resume button to project runners
Closes #20035
See merge request gitlab-org/gitlab-ce!16032
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 |