2020-06-01 20:08:07 -04: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 08:08:51 -04:00
|
|
|
'.js-buy-pipeline-minutes-notification-callout',
|
2020-07-06 23:09:32 -04:00
|
|
|
'.js-token-expiry-callout',
|
2020-11-16 04:09:18 -05:00
|
|
|
'.js-registration-enabled-callout',
|
2020-11-19 10:09:13 -05:00
|
|
|
'.js-new-user-signups-cap-reached',
|
2021-03-22 23:09:04 -04:00
|
|
|
'.js-eoa-bronze-plan-banner',
|
2021-09-30 14:11:31 -04:00
|
|
|
'.js-security-newsletter-callout',
|
2022-06-08 08:08:46 -04:00
|
|
|
'.js-approaching-seat-count-threshold',
|
2022-03-11 07:07:56 -05:00
|
|
|
'.js-storage-enforcement-banner',
|
2022-03-30 17:09:29 -04:00
|
|
|
'.js-user-over-limit-free-plan-alert',
|
2022-05-03 20:09:14 -04:00
|
|
|
'.js-minute-limit-banner',
|
2022-06-10 02:09:50 -04:00
|
|
|
'.js-submit-license-usage-data-banner',
|
2022-06-17 05:08:50 -04:00
|
|
|
'.js-project-usage-limitations-callout',
|
2022-07-27 23:08:50 -04:00
|
|
|
'.js-namespace-storage-alert',
|
2022-09-01 17:10:22 -04:00
|
|
|
'.js-web-hook-disabled-callout',
|
2022-09-06 08:10:02 -04:00
|
|
|
'.js-merge-request-settings-callout',
|
2022-09-09 05:14:13 -04:00
|
|
|
'.js-ultimate-feature-removal-banner',
|
2020-06-01 20:08:07 -04:00
|
|
|
];
|
|
|
|
|
|
|
|
const initCallouts = () => {
|
2020-12-23 19:10:25 -05:00
|
|
|
PERSISTENT_USER_CALLOUTS.forEach((calloutContainer) =>
|
2020-06-01 20:08:07 -04:00
|
|
|
PersistentUserCallout.factory(document.querySelector(calloutContainer)),
|
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
export default initCallouts;
|