From 391cdd8fc44661a64530ddb490fea95cb763d54d Mon Sep 17 00:00:00 2001 From: Stevie Robinson Date: Tue, 15 Aug 2023 22:55:13 +0200 Subject: [PATCH] Add info box to Remote Path Mappings guiding that they are rarely required --- .../RemotePathMappings/RemotePathMappings.js | 8 +++++++- src/NzbDrone.Core/Localization/Core/en.json | 1 + 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/frontend/src/Settings/DownloadClients/RemotePathMappings/RemotePathMappings.js b/frontend/src/Settings/DownloadClients/RemotePathMappings/RemotePathMappings.js index d45958d91..113fb8e58 100644 --- a/frontend/src/Settings/DownloadClients/RemotePathMappings/RemotePathMappings.js +++ b/frontend/src/Settings/DownloadClients/RemotePathMappings/RemotePathMappings.js @@ -1,10 +1,11 @@ import PropTypes from 'prop-types'; import React, { Component } from 'react'; +import Alert from 'Components/Alert'; import FieldSet from 'Components/FieldSet'; import Icon from 'Components/Icon'; import Link from 'Components/Link/Link'; import PageSectionContent from 'Components/Page/PageSectionContent'; -import { icons } from 'Helpers/Props'; +import { icons, kinds } from 'Helpers/Props'; import translate from 'Utilities/String/translate'; import EditRemotePathMappingModalConnector from './EditRemotePathMappingModalConnector'; import RemotePathMapping from './RemotePathMapping'; @@ -50,6 +51,11 @@ class RemotePathMappings extends Component { errorMessage={translate('RemotePathMappingsLoadError')} {...otherProps} > + + + {translate('RemotePathMappingsInfo')} + +
{translate('Host')} diff --git a/src/NzbDrone.Core/Localization/Core/en.json b/src/NzbDrone.Core/Localization/Core/en.json index d4944f8cf..28a00e4a8 100644 --- a/src/NzbDrone.Core/Localization/Core/en.json +++ b/src/NzbDrone.Core/Localization/Core/en.json @@ -929,6 +929,7 @@ "RemotePathMappingRemotePathHelpText": "Root path to the directory that the Download Client accesses", "RemotePathMappingWrongOSPathHealthCheckMessage": "Remote download client {0} places downloads in {1} but this is not a valid {2} path. Review your remote path mappings and download client settings.", "RemotePathMappings": "Remote Path Mappings", + "RemotePathMappingsInfo": "Remote Path Mappings are very rarely required, it is better to match your download path client to your local paths.", "RemotePathMappingsLoadError": "Unable to load Remote Path Mappings", "Remove": "Remove", "RemoveCompleted": "Remove Completed",