summaryrefslogtreecommitdiff
path: root/app/helpers/ci
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-12-01 21:08:18 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2022-12-01 21:08:18 +0000
commit61666f277a484725307ae2b34697b13a300b2129 (patch)
tree01f93083ca2cb9d0eeca1443a23c31a4bdbd5532 /app/helpers/ci
parent4e3a998b8ec1351d8345863f6cad4b9bd497bd6a (diff)
downloadgitlab-ce-61666f277a484725307ae2b34697b13a300b2129.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/helpers/ci')
-rw-r--r--app/helpers/ci/runners_helper.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/helpers/ci/runners_helper.rb b/app/helpers/ci/runners_helper.rb
index 0de84c0d61f..8df30ee1f0d 100644
--- a/app/helpers/ci/runners_helper.rb
+++ b/app/helpers/ci/runners_helper.rb
@@ -96,8 +96,8 @@ module Ci
def toggle_shared_runners_settings_data(project)
{
- is_enabled: "#{project.shared_runners_enabled?}",
- is_disabled_and_unoverridable: "#{project.group&.shared_runners_setting == Namespace::SR_DISABLED_AND_UNOVERRIDABLE}",
+ is_enabled: project.shared_runners_enabled?.to_s,
+ is_disabled_and_unoverridable: (project.group&.shared_runners_setting == Namespace::SR_DISABLED_AND_UNOVERRIDABLE).to_s,
update_path: toggle_shared_runners_project_runners_path(project)
}
end