Commit 0cf79217 authored by Simon Knox's avatar Simon Knox Committed by Jose Ivan Vargas

move 'project_approvals_before_merge' setting out of users_select

parent fe99d2cb
......@@ -38,6 +38,7 @@
$('#require_approvals').on('change', function() {
const enabled = $(this).prop('checked');
const val = enabled ? 1 : 0;
$('#project_approvals_before_merge').val(val);
$('#project_approvals_before_merge').prop('min', val);
$('.nested-settings').toggleClass('hidden', !enabled);
});
......
......@@ -366,10 +366,6 @@ import Vue from 'vue';
});
};
})(this));
$('#require_approvals').on('change', function() {
$('#project_approvals_before_merge').val($(this).prop('checked') ? 1 : 0);
});
}
UsersSelect.prototype.initSelection = function(element, callback) {
......
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