mirror of
https://github.com/ngoduykhanh/wireguard-ui.git
synced 2025-06-07 00:46:58 +03:00
Validate AllowedIPs from user input
This commit is contained in:
parent
fe57993240
commit
7ae4dd12dd
5 changed files with 55 additions and 14 deletions
|
@ -246,6 +246,10 @@
|
|||
$('#modal_new_client').modal('hide');
|
||||
toastr.success('Created new client successfully');
|
||||
// TODO: trigger reloading the dashboard
|
||||
},
|
||||
error: function(jqXHR, exception) {
|
||||
var responseJson = jQuery.parseJSON(jqXHR.responseText);
|
||||
toastr.error(responseJson['message']);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue