Commit 658c2647 authored by Luke Bennett's avatar Luke Bennett

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
parent f1c10b7f
import PersistentUserCallout from '~/persistent_user_callout'; import PersistentUserCallout from '~/persistent_user_callout';
import initGkeDropdowns from '~/projects/gke_cluster_dropdowns'; import initGkeDropdowns from '~/projects/gke_cluster_dropdowns';
function initGcpSignupCallout() { function initCallout() {
const callout = document.querySelector('.gcp-signup-offer'); const callout = document.querySelector('.gcp-signup-offer');
if (callout) new PersistentUserCallout(callout); // eslint-disable-line no-new if (callout) new PersistentUserCallout(callout); // eslint-disable-line no-new
...@@ -16,7 +16,7 @@ document.addEventListener('DOMContentLoaded', () => { ...@@ -16,7 +16,7 @@ document.addEventListener('DOMContentLoaded', () => {
]; ];
if (newClusterViews.indexOf(page) > -1) { if (newClusterViews.indexOf(page) > -1) {
initGcpSignupCallout(); initCallout();
initGkeDropdowns(); initGkeDropdowns();
} }
}); });
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment