debian-mirror-gitlab/app/assets/javascripts/shared/milestones/form.js

22 lines
584 B
JavaScript
Raw Normal View History

2018-05-09 12:01:36 +05:30
import $ from 'jquery';
2018-03-17 18:26:18 +05:30
import DueDateSelectors from '../../due_date_select';
import GLForm from '../../gl_form';
2021-03-11 19:13:27 +05:30
import ZenMode from '../../zen_mode';
2018-03-17 18:26:18 +05:30
export default (initGFM = true) => {
new ZenMode(); // eslint-disable-line no-new
new DueDateSelectors(); // eslint-disable-line no-new
2018-11-08 19:23:39 +05:30
// eslint-disable-next-line no-new
new GLForm($('.milestone-form'), {
emojis: true,
members: initGFM,
issues: initGFM,
mergeRequests: initGFM,
epics: initGFM,
milestones: initGFM,
labels: initGFM,
2018-12-05 23:21:45 +05:30
snippets: initGFM,
2021-01-29 00:20:46 +05:30
vulnerabilities: initGFM,
2018-11-08 19:23:39 +05:30
});
2018-03-17 18:26:18 +05:30
};