Fixed an issue where we didn't provide the correct response when clearing the logs

pull/385/head
tidusjar 8 years ago
parent a08170ca95
commit 3563f166c9

@ -903,7 +903,7 @@ namespace PlexRequests.UI.Modules
{
await LogsRepo.DeleteAsync(logEntity);
}
return Response.AsJson(new JsonResponseModel { Result = true });
return Response.AsJson(new JsonResponseModel { Result = true, Message = "Logs cleared successfully."});
}
catch (Exception e)
{

@ -124,7 +124,7 @@
});
});
$('#clearLogs').click(function() {
$('#clearLogs').click(function(e) {
e.preventDefault();
var $form = $("#clearForm");

Loading…
Cancel
Save