mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-16 02:02:55 -07:00
show the movie/show title when requesting.
This commit is contained in:
parent
29de229203
commit
5b93282b78
2 changed files with 3 additions and 3 deletions
|
@ -91,7 +91,7 @@ function sendRequestAjax(data, type, url, buttonId) {
|
||||||
success: function (response) {
|
success: function (response) {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
if (response.result === true) {
|
if (response.result === true) {
|
||||||
generateNotify("Success!", "success");
|
generateNotify(response.message || "Success!", "success");
|
||||||
|
|
||||||
$('#' + buttonId).html("<i class='fa fa-check'></i> Requested");
|
$('#' + buttonId).html("<i class='fa fa-check'></i> Requested");
|
||||||
$('#' + buttonId).removeClass("btn-primary-outline");
|
$('#' + buttonId).removeClass("btn-primary-outline");
|
||||||
|
|
|
@ -282,7 +282,7 @@ namespace PlexRequests.UI.Modules
|
||||||
var notificationModel = new NotificationModel { Title = model.Title, User = model.RequestedBy, DateTime = DateTime.Now, NotificationType = NotificationType.NewRequest };
|
var notificationModel = new NotificationModel { Title = model.Title, User = model.RequestedBy, DateTime = DateTime.Now, NotificationType = NotificationType.NewRequest };
|
||||||
NotificationService.Publish(notificationModel);
|
NotificationService.Publish(notificationModel);
|
||||||
|
|
||||||
return Response.AsJson(new JsonResponseModel { Result = true });
|
return Response.AsJson(new JsonResponseModel { Result = true, Message = $"{model.Title} was successfully added!" });
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
|
@ -408,7 +408,7 @@ namespace PlexRequests.UI.Modules
|
||||||
var notificationModel = new NotificationModel { Title = model.Title, User = model.RequestedBy, DateTime = DateTime.Now, NotificationType = NotificationType.NewRequest };
|
var notificationModel = new NotificationModel { Title = model.Title, User = model.RequestedBy, DateTime = DateTime.Now, NotificationType = NotificationType.NewRequest };
|
||||||
NotificationService.Publish(notificationModel);
|
NotificationService.Publish(notificationModel);
|
||||||
|
|
||||||
return Response.AsJson(new { Result = true });
|
return Response.AsJson(new JsonResponseModel { Result = true, Message = $"{model.Title} was successfully added!" });
|
||||||
}
|
}
|
||||||
|
|
||||||
private bool CheckIfTitleExistsInPlex(string title, string year)
|
private bool CheckIfTitleExistsInPlex(string title, string year)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue