summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/persistent_user_callouts.js
blob: 8c5f45e9d34539fec32af072d729badf7aa1a2f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import PersistentUserCallout from './persistent_user_callout';

const PERSISTENT_USER_CALLOUTS = [
  '.js-recovery-settings-callout',
  '.js-users-over-license-callout',
  '.js-admin-licensed-user-count-threshold',
  '.js-buy-pipeline-minutes-notification-callout',
  '.js-token-expiry-callout',
  '.js-registration-enabled-callout',
];

const initCallouts = () => {
  PERSISTENT_USER_CALLOUTS.forEach(calloutContainer =>
    PersistentUserCallout.factory(document.querySelector(calloutContainer)),
  );
};

export default initCallouts;