Commit 91384251 authored by Jose Ivan Vargas's avatar Jose Ivan Vargas

address-code-styling

parent a2dcf052
...@@ -51,10 +51,10 @@ export default class ProtectedBranchCreate { ...@@ -51,10 +51,10 @@ export default class ProtectedBranchCreate {
const $allowedToMergeInput = this.$form.find('input[name="protected_branch[merge_access_levels_attributes][0][access_level]"]'); const $allowedToMergeInput = this.$form.find('input[name="protected_branch[merge_access_levels_attributes][0][access_level]"]');
const $allowedToPushInput = this.$form.find('input[name="protected_branch[push_access_levels_attributes][0][access_level]"]'); const $allowedToPushInput = this.$form.find('input[name="protected_branch[push_access_levels_attributes][0][access_level]"]');
const completedForm = !( const completedForm = !(
$branchInput.val() && $branchInput.val() &&
$allowedToMergeInput.length && $allowedToMergeInput.length &&
$allowedToPushInput.length $allowedToPushInput.length
); );
this.savePreviousSelection($allowedToMergeInput.val(), $allowedToPushInput.val()); this.savePreviousSelection($allowedToMergeInput.val(), $allowedToPushInput.val());
this.$form.find('input[type="submit"]').attr('disabled', completedForm); this.$form.find('input[type="submit"]').attr('disabled', completedForm);
......
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