mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-18 21:35:51 -04:00
Replaced save notifications for settings on page with AJAX Notifications.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user