diff options
author | Luke Bennett <lbennett@gitlab.com> | 2018-11-07 08:06:40 +0300 |
---|---|---|
committer | Luke Bennett <lbennett@gitlab.com> | 2018-11-21 18:25:52 +0300 |
commit | 874544507cde6c079fdbc29132c1b2e01a633d73 (patch) | |
tree | 18cd891e319bdd92fc87acd82b22fedef7a3029b /app/assets/javascripts/pages/groups/clusters | |
parent | 7d1bc0bee8abe4bb029f96b74fd7de492219a49c (diff) |
Promote the GitLab.com Gold trial on a users default dashboard
Show a dismissable callout on a users dashboard for a free trial of
the GitLab.com Gold plan. Hide the callout from users who have
dismissed the callout, are already on a trial or are already on the
gold plan
Diffstat (limited to 'app/assets/javascripts/pages/groups/clusters')
-rw-r--r-- | app/assets/javascripts/pages/groups/clusters/index/index.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/app/assets/javascripts/pages/groups/clusters/index/index.js b/app/assets/javascripts/pages/groups/clusters/index/index.js index 845a5f7042c..21efc4f6d00 100644 --- a/app/assets/javascripts/pages/groups/clusters/index/index.js +++ b/app/assets/javascripts/pages/groups/clusters/index/index.js @@ -1,5 +1,7 @@ -import initDismissableCallout from '~/dismissable_callout'; +import PersistentUserCallout from '~/persistent_user_callout'; document.addEventListener('DOMContentLoaded', () => { - initDismissableCallout('.gcp-signup-offer'); + const callout = document.querySelector('.gcp-signup-offer'); + + if (callout) new PersistentUserCallout(callout); // eslint-disable-line no-new }); |