Commit 02da2b40 authored by Alfredo Sumaran's avatar Alfredo Sumaran

Branch input should have a value

[ci skip]
parent 67c343e7
......@@ -41,7 +41,7 @@
const $allowedToMergeInputs = this.$wrap.find('input[name^="protected_branch[merge_access_levels_attributes]"]');
const $allowedToPushInputs = this.$wrap.find('input[name^="protected_branch[push_access_levels_attributes]"]');
if ($branchInput.length && $allowedToMergeInputs.length && $allowedToPushInputs.length){
if ($branchInput.val() && $allowedToMergeInputs.length && $allowedToPushInputs.length){
this.$form.find('input[type="submit"]').removeAttr('disabled');
}
}
......
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