Commit 33b660be authored by Kamil Trzciński's avatar Kamil Trzciński

Support anchors for Groups::RunnersController

parent 0c57782c
...@@ -23,22 +23,22 @@ class Groups::RunnersController < Groups::ApplicationController ...@@ -23,22 +23,22 @@ class Groups::RunnersController < Groups::ApplicationController
def destroy def destroy
@runner.destroy @runner.destroy
redirect_to group_settings_ci_cd_path(@group), status: 302 redirect_to group_settings_ci_cd_path(@group, anchor: 'runners-settings'), status: 302
end end
def resume def resume
if Ci::UpdateRunnerService.new(@runner).update(active: true) if Ci::UpdateRunnerService.new(@runner).update(active: true)
redirect_to group_settings_ci_cd_path(@group), notice: 'Runner was successfully updated.' redirect_to group_settings_ci_cd_path(@group, anchor: 'runners-settings'), notice: 'Runner was successfully updated.'
else else
redirect_to group_settings_ci_cd_path(@group), alert: 'Runner was not updated.' redirect_to group_settings_ci_cd_path(@group, anchor: 'runners-settings'), alert: 'Runner was not updated.'
end end
end end
def pause def pause
if Ci::UpdateRunnerService.new(@runner).update(active: false) if Ci::UpdateRunnerService.new(@runner).update(active: false)
redirect_to group_settings_ci_cd_path(@group), notice: 'Runner was successfully updated.' redirect_to group_settings_ci_cd_path(@group, anchor: 'runners-settings'), notice: 'Runner was successfully updated.'
else else
redirect_to group_settings_ci_cd_path(@group), alert: 'Runner was not updated.' redirect_to group_settings_ci_cd_path(@group, anchor: 'runners-settings'), alert: 'Runner was not updated.'
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment