2020-06-23 00:09:42 +05:30
|
|
|
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',
|
2020-07-28 23:09:34 +05:30
|
|
|
'.js-buy-pipeline-minutes-notification-callout',
|
|
|
|
'.js-token-expiry-callout',
|
2021-01-29 00:20:46 +05:30
|
|
|
'.js-registration-enabled-callout',
|
2021-02-22 17:27:13 +05:30
|
|
|
'.js-new-user-signups-cap-reached',
|
2021-04-29 21:17:54 +05:30
|
|
|
'.js-eoa-bronze-plan-banner',
|
2021-11-18 22:05:49 +05:30
|
|
|
'.js-security-newsletter-callout',
|
2020-06-23 00:09:42 +05:30
|
|
|
];
|
|
|
|
|
|
|
|
const initCallouts = () => {
|
2021-03-08 18:12:59 +05:30
|
|
|
PERSISTENT_USER_CALLOUTS.forEach((calloutContainer) =>
|
2020-06-23 00:09:42 +05:30
|
|
|
PersistentUserCallout.factory(document.querySelector(calloutContainer)),
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
export default initCallouts;
|