From cc538c4b2d33a1734c45c0667776d946596107e9 Mon Sep 17 00:00:00 2001 From: Bogdan Date: Mon, 14 Aug 2023 00:03:18 +0300 Subject: [PATCH] Show warning when using the docker update mechanism --- frontend/src/Settings/General/UpdateSettings.js | 3 ++- frontend/src/System/Updates/Updates.js | 5 ++--- src/NzbDrone.Common/Extensions/PathExtensions.cs | 2 +- src/NzbDrone.Core/Localization/Core/en.json | 1 + src/Sonarr.Api.V3/Config/HostConfigController.cs | 2 +- 5 files changed, 7 insertions(+), 6 deletions(-) diff --git a/frontend/src/Settings/General/UpdateSettings.js b/frontend/src/Settings/General/UpdateSettings.js index c01974560..9e5cf0a6b 100644 --- a/frontend/src/Settings/General/UpdateSettings.js +++ b/frontend/src/Settings/General/UpdateSettings.js @@ -9,7 +9,7 @@ import titleCase from 'Utilities/String/titleCase'; import translate from 'Utilities/String/translate'; const branchValues = [ - 'master', + 'main', 'develop' ]; @@ -83,6 +83,7 @@ function UpdateSettings(props) { type={inputTypes.CHECK} name="updateAutomatically" helpText={translate('UpdateAutomaticallyHelpText')} + helpTextWarning={updateMechanism.value === 'docker' ? translate('AutomaticUpdatesDisabledDocker', { appName: 'Sonarr' }) : undefined} onChange={onInputChange} {...updateAutomatically} /> diff --git a/frontend/src/System/Updates/Updates.js b/frontend/src/System/Updates/Updates.js index e40276181..bf2563cb1 100644 --- a/frontend/src/System/Updates/Updates.js +++ b/frontend/src/System/Updates/Updates.js @@ -111,7 +111,6 @@ class Updates extends Component { name={icons.CHECK_CIRCLE} size={30} /> -
{translate('OnLatestVersion')}
@@ -149,8 +148,8 @@ class Updates extends Component { { - update.branch === 'master' ? - null: + update.branch === 'main' ? + null :