2020-06-02 00:08:07 +00:00
|
|
|
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-06-26 12:08:51 +00:00
|
|
|
'.js-buy-pipeline-minutes-notification-callout',
|
2020-07-07 03:09:32 +00:00
|
|
|
'.js-token-expiry-callout',
|
2020-11-16 09:09:18 +00:00
|
|
|
'.js-registration-enabled-callout',
|
2021-04-14 15:09:04 +00:00
|
|
|
'.js-service-templates-deprecated-callout',
|
2020-11-19 15:09:13 +00:00
|
|
|
'.js-new-user-signups-cap-reached',
|
2021-03-23 03:09:04 +00:00
|
|
|
'.js-eoa-bronze-plan-banner',
|
2020-06-02 00:08:07 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
const initCallouts = () => {
|
2020-12-24 00:10:25 +00:00
|
|
|
PERSISTENT_USER_CALLOUTS.forEach((calloutContainer) =>
|
2020-06-02 00:08:07 +00:00
|
|
|
PersistentUserCallout.factory(document.querySelector(calloutContainer)),
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
export default initCallouts;
|