24 lines
766 B
JavaScript
24 lines
766 B
JavaScript
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',
|
|
'.js-new-user-signups-cap-reached',
|
|
'.js-eoa-bronze-plan-banner',
|
|
'.js-security-newsletter-callout',
|
|
'.js-approaching-seats-count-threshold',
|
|
'.js-storage-enforcement-banner',
|
|
'.js-user-over-limit-free-plan-alert',
|
|
];
|
|
|
|
const initCallouts = () => {
|
|
PERSISTENT_USER_CALLOUTS.forEach((calloutContainer) =>
|
|
PersistentUserCallout.factory(document.querySelector(calloutContainer)),
|
|
);
|
|
};
|
|
|
|
export default initCallouts;
|