From d8f3d7d3eafeafd8d4372db0076a63f935a29218 Mon Sep 17 00:00:00 2001 From: Stevie Robinson Date: Sat, 19 Aug 2023 07:33:57 +0200 Subject: [PATCH] Add info box to Remote Path Mappings Settings --- .../RemotePathMappings/RemotePathMappings.js | 9 ++++++++- src/NzbDrone.Core/Localization/Core/en.json | 1 + 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/frontend/src/Settings/DownloadClients/RemotePathMappings/RemotePathMappings.js b/frontend/src/Settings/DownloadClients/RemotePathMappings/RemotePathMappings.js index d45958d91..78c3c7e02 100644 --- a/frontend/src/Settings/DownloadClients/RemotePathMappings/RemotePathMappings.js +++ b/frontend/src/Settings/DownloadClients/RemotePathMappings/RemotePathMappings.js @@ -1,10 +1,12 @@ 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 InlineMarkdown from 'Components/Markdown/InlineMarkdown'; 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 +52,11 @@ class RemotePathMappings extends Component { errorMessage={translate('RemotePathMappingsLoadError')} {...otherProps} > + + + + +
{translate('Host')} diff --git a/src/NzbDrone.Core/Localization/Core/en.json b/src/NzbDrone.Core/Localization/Core/en.json index 9549714d1..8e1a71b9f 100644 --- a/src/NzbDrone.Core/Localization/Core/en.json +++ b/src/NzbDrone.Core/Localization/Core/en.json @@ -950,6 +950,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, if {app} and your download client are on the same system it is better to match your paths. For more information see the [wiki]({wikiLink})", "RemotePathMappingsLoadError": "Unable to load Remote Path Mappings", "Remove": "Remove", "RemoveCompleted": "Remove Completed",