ui: traffic-control edit: simple duplicate networks detection
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
5d5a53059f
commit
76ee3085a4
@ -197,7 +197,7 @@ Ext.define('PBS.window.TrafficControlEdit', {
|
|||||||
if (!values.network) {
|
if (!values.network) {
|
||||||
values.network = ['0.0.0.0/0', '::/0'];
|
values.network = ['0.0.0.0/0', '::/0'];
|
||||||
} else {
|
} else {
|
||||||
values.network = values.network.split(/\s*,\s*/);
|
values.network = [...new Set(values.network.split(/\s*,\s*/))];
|
||||||
}
|
}
|
||||||
|
|
||||||
if ('timeframe' in values && !values.timeframe) {
|
if ('timeframe' in values && !values.timeframe) {
|
||||||
|
Loading…
Reference in New Issue
Block a user