Refactor Indexer index to use react-window

(cherry picked from commit d022679b7dcbce3cec98e6a1fd0879e3c0d92523)
This commit is contained in:
Mark McDowall
2023-01-05 18:20:49 -08:00
committed by Qstick
parent c2599ef2e7
commit c0383ad5f5
314 changed files with 4928 additions and 3017 deletions

View File

@@ -29,9 +29,9 @@ namespace Prowlarr.Api.V1.Indexers
foreach (var indexer in indexersToUpdate)
{
if (resource.Enable.IsNotNullOrWhiteSpace())
if (resource.Enable.HasValue)
{
indexer.Enable = bool.Parse(resource.Enable);
indexer.Enable = resource.Enable.Value;
}
if (resource.AppProfileId.HasValue)

View File

@@ -5,7 +5,7 @@ namespace Prowlarr.Api.V1.Indexers
public class IndexerEditorResource
{
public List<int> IndexerIds { get; set; }
public string Enable { get; set; }
public bool? Enable { get; set; }
public int? AppProfileId { get; set; }
public List<int> Tags { get; set; }
public ApplyTags ApplyTags { get; set; }