diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-08-20 21:42:06 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-08-20 21:42:06 +0300 |
commit | 6e4e1050d9dba2b7b2523fdd1768823ab85feef4 (patch) | |
tree | 78be5963ec075d80116a932011d695dd33910b4e /app/helpers/clusters_helper.rb | |
parent | 1ce776de4ae122aba3f349c02c17cebeaa8ecf07 (diff) |
Add latest changes from gitlab-org/gitlab@13-3-stable-ee
Diffstat (limited to 'app/helpers/clusters_helper.rb')
-rw-r--r-- | app/helpers/clusters_helper.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/app/helpers/clusters_helper.rb b/app/helpers/clusters_helper.rb index c85d2a68f14..b97e847c397 100644 --- a/app/helpers/clusters_helper.rb +++ b/app/helpers/clusters_helper.rb @@ -24,6 +24,18 @@ module ClustersHelper } end + def js_cluster_form_data(cluster, can_edit) + { + enabled: cluster.enabled?.to_s, + editable: can_edit.to_s, + environment_scope: cluster.environment_scope, + base_domain: cluster.base_domain, + application_ingress_external_ip: cluster.application_ingress_external_ip, + auto_devops_help_path: help_page_path('topics/autodevops/index'), + external_endpoint_help_path: help_page_path('user/clusters/applications.md', anchor: 'pointing-your-dns-at-the-external-endpoint') + } + end + # This method is depreciated and will be removed when associated HAML files are moved to JavaScript def provider_icon(provider = nil) img_data = js_clusters_list_data.dig(:img_tags, provider&.to_sym) || |