debian-mirror-gitlab/app/assets/javascripts/persistent_user_callouts.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
1 KiB
JavaScript
Raw Normal View History

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',
2022-07-23 23:45:48 +05:30
'.js-approaching-seat-count-threshold',
2022-05-07 20:08:51 +05:30
'.js-storage-enforcement-banner',
2022-06-21 17:19:12 +05:30
'.js-user-over-limit-free-plan-alert',
2022-07-16 23:28:13 +05:30
'.js-minute-limit-banner',
2022-07-23 23:45:48 +05:30
'.js-submit-license-usage-data-banner',
'.js-project-usage-limitations-callout',
2022-08-27 11:52:29 +05:30
'.js-namespace-storage-alert',
2022-10-11 01:57:18 +05:30
'.js-web-hook-disabled-callout',
'.js-merge-request-settings-callout',
'.js-ultimate-feature-removal-banner',
2020-06-23 00:09:42 +05:30
];
const initCallouts = () => {
2023-01-13 00:05:48 +05:30
document
.querySelectorAll(PERSISTENT_USER_CALLOUTS)
.forEach((calloutContainer) => PersistentUserCallout.factory(calloutContainer));
2020-06-23 00:09:42 +05:30
};
export default initCallouts;