mirror of
https://github.com/Radarr/Radarr
synced 2025-02-19 04:50:43 +00:00
Order notifications in schema
This commit is contained in:
parent
261ce772de
commit
6397239435
1 changed files with 2 additions and 2 deletions
|
@ -57,7 +57,6 @@ public List<Notification> Schema()
|
||||||
int i = 1;
|
int i = 1;
|
||||||
foreach (var notification in _notifications)
|
foreach (var notification in _notifications)
|
||||||
{
|
{
|
||||||
i++;
|
|
||||||
var type = notification.GetType();
|
var type = notification.GetType();
|
||||||
|
|
||||||
var newNotification = new Notification();
|
var newNotification = new Notification();
|
||||||
|
@ -71,9 +70,10 @@ public List<Notification> Schema()
|
||||||
newNotification.Implementation = type.Name;
|
newNotification.Implementation = type.Name;
|
||||||
|
|
||||||
notifications.Add(newNotification);
|
notifications.Add(newNotification);
|
||||||
|
i++;
|
||||||
}
|
}
|
||||||
|
|
||||||
return notifications;
|
return notifications.OrderBy(n => n.Name).ToList();
|
||||||
}
|
}
|
||||||
|
|
||||||
private Notification ToNotification(NotificationDefinition definition)
|
private Notification ToNotification(NotificationDefinition definition)
|
||||||
|
|
Loading…
Reference in a new issue