debian-mirror-gitlab/app/assets/javascripts/protected_branches/protected_branch_edit_list.js

21 lines
452 B
JavaScript
Raw Normal View History

2017-09-10 17:25:29 +05:30
/* eslint-disable no-new */
2017-08-17 22:00:37 +05:30
2018-05-09 12:01:36 +05:30
import $ from 'jquery';
2017-09-10 17:25:29 +05:30
import ProtectedBranchEdit from './protected_branch_edit';
2016-09-13 17:45:13 +05:30
2017-09-10 17:25:29 +05:30
export default class ProtectedBranchEditList {
constructor() {
this.$wrap = $('.protected-branches-list');
this.initEditForm();
}
2016-09-13 17:45:13 +05:30
2017-09-10 17:25:29 +05:30
initEditForm() {
this.$wrap.find('.js-protected-branch-edit-form').each((i, el) => {
new ProtectedBranchEdit({
$wrap: $(el),
2020-10-24 23:57:45 +05:30
hasLicense: false,
2016-09-13 17:45:13 +05:30
});
2017-09-10 17:25:29 +05:30
});
}
}