diff options
author | Matija Čupić <matteeyah@gmail.com> | 2018-02-01 21:02:07 +0100 |
---|---|---|
committer | Matija Čupić <matteeyah@gmail.com> | 2018-02-01 21:02:07 +0100 |
commit | 4ff0cfe541739ead870fc9f7708db9b19e5b718c (patch) | |
tree | 432859105a46b439db7b16d8dccdcb95b9cc6ca4 /app | |
parent | 4cfe66ae5f2c1f83944999c640c175085008105b (diff) | |
download | gitlab-ce-4ff0cfe541739ead870fc9f7708db9b19e5b718c.tar.gz |
Add callout priority enum
Diffstat (limited to 'app')
-rw-r--r-- | app/helpers/callouts_helper.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/helpers/callouts_helper.rb b/app/helpers/callouts_helper.rb index 153797450de..f93df287512 100644 --- a/app/helpers/callouts_helper.rb +++ b/app/helpers/callouts_helper.rb @@ -1,6 +1,11 @@ module CalloutsHelper GKE_CLUSTER_INTEGRATION = 'gke_cluster_integration'.freeze + # Higher value = higher priority + PRIORITY = { + GKE_CLUSTER_INTEGRATION: 0 + }.freeze + def show_gke_cluster_integration_callout?(project) current_user && !user_dismissed?(GKE_CLUSTER_INTEGRATION) && (project.team.master?(current_user) || |