debian-mirror-gitlab/app/assets/javascripts/persistent_user_callouts.js
2020-08-09 17:41:57 +05:30

18 lines
527 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-alerts-moved-alert',
'.js-token-expiry-callout',
];
const initCallouts = () => {
PERSISTENT_USER_CALLOUTS.forEach(calloutContainer =>
PersistentUserCallout.factory(document.querySelector(calloutContainer)),
);
};
export default initCallouts;