diff options
author | Kamil Trzciński <ayufan@ayufan.eu> | 2018-11-23 16:49:31 +0000 |
---|---|---|
committer | Kamil Trzciński <ayufan@ayufan.eu> | 2018-11-23 16:49:31 +0000 |
commit | 427c1e72194556c9e198659dfff92cb42b31fb62 (patch) | |
tree | 7f845ca63b0b9b174dea9a6944b6a2cf71efba02 /app/assets/javascripts/clusters | |
parent | 5aac64a79527afef9ff6b4b1db52a9c01c5d6af6 (diff) | |
parent | 874544507cde6c079fdbc29132c1b2e01a633d73 (diff) | |
download | gitlab-ce-427c1e72194556c9e198659dfff92cb42b31fb62.tar.gz |
Merge branch 'ce-6983-promote-starting-a-gitlab-com-trial' into 'master'
CE port: Promote the GitLab.com Gold trial on a users default dashboard
See merge request gitlab-org/gitlab-ce!22901
Diffstat (limited to 'app/assets/javascripts/clusters')
-rw-r--r-- | app/assets/javascripts/clusters/clusters_bundle.js | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/app/assets/javascripts/clusters/clusters_bundle.js b/app/assets/javascripts/clusters/clusters_bundle.js index cf70a48f076..aff32d95db1 100644 --- a/app/assets/javascripts/clusters/clusters_bundle.js +++ b/app/assets/javascripts/clusters/clusters_bundle.js @@ -1,6 +1,6 @@ import Visibility from 'visibilityjs'; import Vue from 'vue'; -import initDismissableCallout from '~/dismissable_callout'; +import PersistentUserCallout from '../persistent_user_callout'; import { s__, sprintf } from '../locale'; import Flash from '../flash'; import Poll from '../lib/utils/poll'; @@ -67,7 +67,7 @@ export default class Clusters { this.showTokenButton = document.querySelector('.js-show-cluster-token'); this.tokenField = document.querySelector('.js-cluster-token'); - initDismissableCallout('.js-cluster-security-warning'); + Clusters.initDismissableCallout(); initSettingsPanels(); setupToggleButtons(document.querySelector('.js-cluster-enable-toggle-area')); this.initApplications(clusterType); @@ -108,6 +108,12 @@ export default class Clusters { }); } + static initDismissableCallout() { + const callout = document.querySelector('.js-cluster-security-warning'); + + if (callout) new PersistentUserCallout(callout); // eslint-disable-line no-new + } + addListeners() { if (this.showTokenButton) this.showTokenButton.addEventListener('click', this.showToken); eventHub.$on('installApplication', this.installApplication); |