add satisfy configuration to the ui

This commit is contained in:
Kyle Klaus
2020-04-11 00:26:54 -07:00
parent 8d432bd60a
commit 0f238a5021
8 changed files with 55 additions and 10 deletions

View File

@ -65,17 +65,20 @@ module.exports = Mn.View.extend({
}
});
if (!items_data.length) {
alert('You must specify at least 1 Username and Password combination');
if (!items_data.length && !clients_data.length) {
alert('You must specify at least 1 Authorization or Access rule');
return;
}
let data = {
name: form_data.name,
items: items_data,
clients: clients_data
name: form_data.name,
satify_any: !!form_data.satify_any,
items: items_data,
clients: clients_data
};
console.log(data);
let method = App.Api.Nginx.AccessLists.create;
let is_new = true;