Add callout priority enum
This commit is contained in:
parent
4cfe66ae5f
commit
4ff0cfe541
|
@ -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) ||
|
||||
|
|
Loading…
Reference in New Issue