Validate AllowedIPs from user input

This commit is contained in:
Khanh Ngo 2020-04-19 10:46:43 +07:00
parent fe57993240
commit 7ae4dd12dd
No known key found for this signature in database
GPG key ID: D5FAA6A16150E49E
5 changed files with 55 additions and 14 deletions

View file

@ -105,6 +105,10 @@ Dashboard
$('#modal_remove_client').modal('hide');
toastr.success('Removed client successfully');
// TODO: trigger reloading the dashboard
},
error: function(jqXHR, exception) {
var responseJson = jQuery.parseJSON(jqXHR.responseText);
toastr.error(responseJson['message']);
}
});
});