summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/protected_tags/protected_tag_edit_list.js
blob: 88c7accdec6913e74e6b90e17530f879ad469eac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import ProtectedTagEdit from './protected_tag_edit';

export default class ProtectedTagEditList {
  constructor() {
    this.$wrap = $('.protected-tags-list');
    this.protectedTagList = [];
    this.initEditForm();
  }

  initEditForm() {
    this.$wrap.find('.js-protected-tag-edit-form').each((i, el) => {
      this.protectedTagList[i] = new ProtectedTagEdit({
        $wrap: $(el),
      });
    });
  }
}