gitlab-org--gitlab-foss/app/assets/javascripts/protected_branches/protected_branch_edit_list.js

21 lines
452 B
JavaScript
Raw Normal View History

2017-07-19 12:44:15 +00:00
/* eslint-disable no-new */
import $ from 'jquery';
2017-07-19 12:44:15 +00:00
import ProtectedBranchEdit from './protected_branch_edit';
2017-07-19 12:44:15 +00:00
export default class ProtectedBranchEditList {
constructor() {
this.$wrap = $('.protected-branches-list');
this.initEditForm();
}
2017-07-19 12:44:15 +00:00
initEditForm() {
this.$wrap.find('.js-protected-branch-edit-form').each((i, el) => {
new ProtectedBranchEdit({
$wrap: $(el),
hasLicense: false,
});
2017-07-19 12:44:15 +00:00
});
}
}