summaryrefslogtreecommitdiff
path: root/app/controllers/projects/runners_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/projects/runners_controller.rb')
-rw-r--r--app/controllers/projects/runners_controller.rb15
1 files changed, 2 insertions, 13 deletions
diff --git a/app/controllers/projects/runners_controller.rb b/app/controllers/projects/runners_controller.rb
index b7a5a63e642..ec1f57f090a 100644
--- a/app/controllers/projects/runners_controller.rb
+++ b/app/controllers/projects/runners_controller.rb
@@ -48,28 +48,17 @@ class Projects::RunnersController < Projects::ApplicationController
end
def show
- render 'shared/runners/show'
end
def toggle_shared_runners
if !project.shared_runners_enabled && project.group && project.group.shared_runners_setting == 'disabled_and_unoverridable'
-
- if Feature.enabled?(:vueify_shared_runners_toggle, @project)
- render json: { error: _('Cannot enable shared runners because parent group does not allow it') }, status: :unauthorized
- else
- redirect_to project_runners_path(@project), alert: _('Cannot enable shared runners because parent group does not allow it')
- end
-
+ render json: { error: _('Cannot enable shared runners because parent group does not allow it') }, status: :unauthorized
return
end
project.toggle!(:shared_runners_enabled)
- if Feature.enabled?(:vueify_shared_runners_toggle, @project)
- render json: {}, status: :ok
- else
- redirect_to project_settings_ci_cd_path(@project, anchor: 'js-runners-settings')
- end
+ render json: {}, status: :ok
end
def toggle_group_runners