Added filtering on status to the requests page

This commit is contained in:
Jamie Rees 2020-05-04 22:11:43 +01:00
commit 4a8c1cd25a
10 changed files with 139 additions and 67 deletions

View file

@ -93,7 +93,7 @@ namespace Ombi.Store.Context
}
needToSave = true;
NotificationTemplates notificationToAdd;
NotificationTemplates notificationToAdd = null;
switch (notificationType)
{
case NotificationType.NewRequest:
@ -207,7 +207,10 @@ namespace Ombi.Store.Context
default:
throw new ArgumentOutOfRangeException();
}
NotificationTemplates.Add(notificationToAdd);
if (notificationToAdd != null)
{
NotificationTemplates.Add(notificationToAdd);
}
}
}