mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-10 07:13:47 -07:00
Replaced save notifications for settings on page with AJAX Notifications.
This commit is contained in:
parent
3cc052e9b6
commit
d65d79a5c9
10 changed files with 81 additions and 10 deletions
|
@ -18,9 +18,21 @@ namespace NzbDrone.Web.Controllers
|
|||
public JsonResult Index()
|
||||
{
|
||||
string message = string.Empty;
|
||||
if (_notifications.GetProgressNotifications.Count != 0)
|
||||
|
||||
var basic = _notifications.BasicNotifications;
|
||||
|
||||
if (basic.Count != 0)
|
||||
{
|
||||
message = _notifications.GetProgressNotifications[0].CurrentMessage;
|
||||
message = basic[0].Title;
|
||||
|
||||
if (basic[0].AutoDismiss)
|
||||
_notifications.Dismiss(basic[0].Id);
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
if (_notifications.GetProgressNotifications.Count != 0)
|
||||
message = _notifications.GetProgressNotifications[0].CurrentMessage;
|
||||
}
|
||||
|
||||
return Json(message, JsonRequestBehavior.AllowGet);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue