Commit fcdcc0d3 authored by kushalpandya's avatar kushalpandya

Spread used props

parent 80314ea8
...@@ -5,12 +5,12 @@ export default class ProtectedBranchAccessDropdown { ...@@ -5,12 +5,12 @@ export default class ProtectedBranchAccessDropdown {
} }
initDropdown() { initDropdown() {
const { onSelect } = this.options; const { $dropdown, data, onSelect } = this.options;
this.options.$dropdown.glDropdown({ $dropdown.glDropdown({
data: this.options.data, data,
selectable: true, selectable: true,
inputId: this.options.$dropdown.data('input-id'), inputId: $dropdown.data('input-id'),
fieldName: this.options.$dropdown.data('field-name'), fieldName: $dropdown.data('field-name'),
toggleLabel(item, $el) { toggleLabel(item, $el) {
if ($el.is('.is-active')) { if ($el.is('.is-active')) {
return item.text; return item.text;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment