redirect_togroup_runner_path(@group,@runner),notice: _('Runner was successfully updated.')
redirect_togroup_runner_path(@group,@runner),notice: _('Runner was successfully updated.')
else
else
render'edit'
render'edit'
...
@@ -35,14 +35,14 @@ class Groups::RunnersController < Groups::ApplicationController
...
@@ -35,14 +35,14 @@ class Groups::RunnersController < Groups::ApplicationController
if@runner.belongs_to_more_than_one_project?
if@runner.belongs_to_more_than_one_project?
redirect_togroup_settings_ci_cd_path(@group,anchor: 'runners-settings'),status: :found,alert: _('Runner was not deleted because it is assigned to multiple projects.')
redirect_togroup_settings_ci_cd_path(@group,anchor: 'runners-settings'),status: :found,alert: _('Runner was not deleted because it is assigned to multiple projects.')