summaryrefslogtreecommitdiff
path: root/app/helpers/user_callouts_helper.rb
diff options
context:
space:
mode:
authorMayra Cabrera <mcabrera@gitlab.com>2018-10-23 17:30:04 -0500
committerMayra Cabrera <mcabrera@gitlab.com>2018-11-05 11:25:09 +0100
commitfe083f505d907c1d1cef14c29170b31cf30192fe (patch)
treea4fa9da8e6074ee784866c4a67921211e8439bbc /app/helpers/user_callouts_helper.rb
parent8ceb3dc3417baf8837b46cfc1d5207efe848d2c3 (diff)
downloadgitlab-ce-fe083f505d907c1d1cef14c29170b31cf30192fe.tar.gz
Removes experimental label from cluster viewsremove-experimental-label-from-cluster-views
As part of https://gitlab.com/gitlab-org/gitlab-ce/issues/51716, we need to remove 'experimental' labels from cluster views (show and form), as well as the promp about cluster configuration, since it won't apply. These changes were originally introduced on https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/22011/, but we're trying to reduce the size of that MR as it's to big to review with confidence.
Diffstat (limited to 'app/helpers/user_callouts_helper.rb')
-rw-r--r--app/helpers/user_callouts_helper.rb5
1 files changed, 0 insertions, 5 deletions
diff --git a/app/helpers/user_callouts_helper.rb b/app/helpers/user_callouts_helper.rb
index bae01d476df..4aba48061ba 100644
--- a/app/helpers/user_callouts_helper.rb
+++ b/app/helpers/user_callouts_helper.rb
@@ -3,7 +3,6 @@
module UserCalloutsHelper
GKE_CLUSTER_INTEGRATION = 'gke_cluster_integration'.freeze
GCP_SIGNUP_OFFER = 'gcp_signup_offer'.freeze
- CLUSTER_SECURITY_WARNING = 'cluster_security_warning'.freeze
def show_gke_cluster_integration_callout?(project)
can?(current_user, :create_cluster, project) &&
@@ -14,10 +13,6 @@ module UserCalloutsHelper
!user_dismissed?(GCP_SIGNUP_OFFER)
end
- def show_cluster_security_warning?
- !user_dismissed?(CLUSTER_SECURITY_WARNING)
- end
-
private
def user_dismissed?(feature_name)