mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-27 12:33:00 +02:00
Removed basic notification. client side notification should be used.
This commit is contained in:
@@ -18,37 +18,6 @@ namespace NzbDrone.Web.Controllers
|
||||
_notifications = notificationProvider;
|
||||
}
|
||||
|
||||
[HttpGet]
|
||||
public JsonResult Index()
|
||||
{
|
||||
string message = string.Empty;
|
||||
|
||||
var basic = _notifications.BasicNotifications;
|
||||
|
||||
if (basic.Count != 0)
|
||||
{
|
||||
message = basic[0].Title;
|
||||
|
||||
if (basic[0].AutoDismiss)
|
||||
_notifications.Dismiss(basic[0].Id);
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
if (_notifications.ProgressNotifications.Count != 0)
|
||||
message = _notifications.ProgressNotifications[0].CurrentMessage;
|
||||
}
|
||||
|
||||
|
||||
if (MiniProfiler.Current.DurationMilliseconds < 100)
|
||||
{
|
||||
MiniProfiler.Stop(true);
|
||||
}
|
||||
|
||||
return Json(message, JsonRequestBehavior.AllowGet);
|
||||
}
|
||||
|
||||
|
||||
[HttpGet]
|
||||
public JsonResult Comet(string message)
|
||||
{
|
||||
|
Reference in New Issue
Block a user