From 2bd25fb6f32dae789356da3e8446f03831e53ff3 Mon Sep 17 00:00:00 2001 From: Bogdan Date: Sun, 21 Jan 2024 07:46:38 +0200 Subject: [PATCH] Reorder sync fields for App Profiles --- .../Profiles/App/EditAppProfileModalContent.js | 16 ++++++++-------- .../Profiles/AppSyncProfileService.cs | 2 +- .../Profiles/App/AppProfileResource.cs | 6 +++--- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/frontend/src/Settings/Profiles/App/EditAppProfileModalContent.js b/frontend/src/Settings/Profiles/App/EditAppProfileModalContent.js index aace8e039..ac67c77f2 100644 --- a/frontend/src/Settings/Profiles/App/EditAppProfileModalContent.js +++ b/frontend/src/Settings/Profiles/App/EditAppProfileModalContent.js @@ -99,28 +99,28 @@ class EditAppProfileModalContent extends Component { - {translate('EnableInteractiveSearch')} + {translate('EnableAutomaticSearch')} - {translate('EnableAutomaticSearch')} + {translate('EnableInteractiveSearch')} diff --git a/src/NzbDrone.Core/Profiles/AppSyncProfileService.cs b/src/NzbDrone.Core/Profiles/AppSyncProfileService.cs index 135cd9e2a..095f3abd9 100644 --- a/src/NzbDrone.Core/Profiles/AppSyncProfileService.cs +++ b/src/NzbDrone.Core/Profiles/AppSyncProfileService.cs @@ -86,9 +86,9 @@ namespace NzbDrone.Core.Profiles var qualityProfile = new AppSyncProfile { Name = name, + EnableRss = true, EnableAutomaticSearch = true, EnableInteractiveSearch = true, - EnableRss = true, MinimumSeeders = 1 }; diff --git a/src/Prowlarr.Api.V1/Profiles/App/AppProfileResource.cs b/src/Prowlarr.Api.V1/Profiles/App/AppProfileResource.cs index aa88dfac6..623b6bf65 100644 --- a/src/Prowlarr.Api.V1/Profiles/App/AppProfileResource.cs +++ b/src/Prowlarr.Api.V1/Profiles/App/AppProfileResource.cs @@ -9,8 +9,8 @@ namespace Prowlarr.Api.V1.Profiles.App { public string Name { get; set; } public bool EnableRss { get; set; } - public bool EnableInteractiveSearch { get; set; } public bool EnableAutomaticSearch { get; set; } + public bool EnableInteractiveSearch { get; set; } public int MinimumSeeders { get; set; } } @@ -28,8 +28,8 @@ namespace Prowlarr.Api.V1.Profiles.App Id = model.Id, Name = model.Name, EnableRss = model.EnableRss, - EnableInteractiveSearch = model.EnableInteractiveSearch, EnableAutomaticSearch = model.EnableAutomaticSearch, + EnableInteractiveSearch = model.EnableInteractiveSearch, MinimumSeeders = model.MinimumSeeders }; } @@ -46,8 +46,8 @@ namespace Prowlarr.Api.V1.Profiles.App Id = resource.Id, Name = resource.Name, EnableRss = resource.EnableRss, - EnableInteractiveSearch = resource.EnableInteractiveSearch, EnableAutomaticSearch = resource.EnableAutomaticSearch, + EnableInteractiveSearch = resource.EnableInteractiveSearch, MinimumSeeders = resource.MinimumSeeders }; }