Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkushalpandya <kushal@gitlab.com>2017-07-20 21:10:14 +0300
committerkushalpandya <kushal@gitlab.com>2017-07-20 21:10:14 +0300
commitfcdcc0d351e07f3838f71f6d617cf2f3d13c663a (patch)
treee294e53c61c92db928eb5409b20336d4a4660fef /app/assets/javascripts/protected_branches
parent80314ea876cee6cad2844754dd76b1319613d033 (diff)
Spread used props
Diffstat (limited to 'app/assets/javascripts/protected_branches')
-rw-r--r--app/assets/javascripts/protected_branches/protected_branch_access_dropdown.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/app/assets/javascripts/protected_branches/protected_branch_access_dropdown.js b/app/assets/javascripts/protected_branches/protected_branch_access_dropdown.js
index 0b29b365da8..38b1406a99f 100644
--- a/app/assets/javascripts/protected_branches/protected_branch_access_dropdown.js
+++ b/app/assets/javascripts/protected_branches/protected_branch_access_dropdown.js
@@ -5,12 +5,12 @@ export default class ProtectedBranchAccessDropdown {
}
initDropdown() {
- const { onSelect } = this.options;
- this.options.$dropdown.glDropdown({
- data: this.options.data,
+ const { $dropdown, data, onSelect } = this.options;
+ $dropdown.glDropdown({
+ data,
selectable: true,
- inputId: this.options.$dropdown.data('input-id'),
- fieldName: this.options.$dropdown.data('field-name'),
+ inputId: $dropdown.data('input-id'),
+ fieldName: $dropdown.data('field-name'),
toggleLabel(item, $el) {
if ($el.is('.is-active')) {
return item.text;