1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-11-26 04:33:01 +01:00

Rename 'On Upgrade' to 'On File Upgrade'

This commit is contained in:
Mark McDowall 2024-07-14 21:57:16 -07:00 committed by Mark McDowall
parent 6afd3bd344
commit f5ccf98162
5 changed files with 5 additions and 3 deletions

View File

@ -115,7 +115,7 @@ class Notification extends Component {
{
supportsOnUpgrade && onDownload && onUpgrade ?
<Label kind={kinds.SUCCESS}>
{translate('OnUpgrade')}
{translate('OnFileUpgrade')}
</Label> :
null
}

View File

@ -81,7 +81,7 @@ function NotificationEventItems(props) {
<FormInputGroup
type={inputTypes.CHECK}
name="onUpgrade"
helpText={translate('OnUpgrade')}
helpText={translate('OnFileUpgrade')}
isDisabled={!supportsOnUpgrade.value}
{...onUpgrade}
onChange={onInputChange}

View File

@ -1460,6 +1460,7 @@
"OnEpisodeFileDelete": "On Episode File Delete",
"OnEpisodeFileDeleteForUpgrade": "On Episode File Delete For Upgrade",
"OnFileImport": "On File Import",
"OnFileUpgrade": "On File Upgrade",
"OnGrab": "On Grab",
"OnHealthIssue": "On Health Issue",
"OnHealthRestored": "On Health Restored",
@ -1469,7 +1470,6 @@
"OnRename": "On Rename",
"OnSeriesAdd": "On Series Add",
"OnSeriesDelete": "On Series Delete",
"OnUpgrade": "On Upgrade",
"OneMinute": "1 Minute",
"OneSeason": "1 Season",
"OnlyForBulkSeasonReleases": "Only for Bulk Season Releases",

View File

@ -14,6 +14,7 @@ namespace NzbDrone.Core.Notifications
public List<Episode> Episodes { get; set; }
public List<EpisodeFile> EpisodeFiles { get; set; }
public string SourcePath { get; set; }
public string SourceTitle { get; set; }
public DownloadClientItemClientInfo DownloadClientInfo { get; set; }
public string DownloadId { get; set; }
public GrabbedReleaseInfo Release { get; set; }

View File

@ -268,6 +268,7 @@ namespace NzbDrone.Core.Notifications
Episodes = episodes,
EpisodeFiles = message.EpisodeFiles,
SourcePath = message.SourcePath,
SourceTitle = parsedEpisodeInfo.ReleaseTitle,
DestinationPath = message.EpisodeFiles.Select(e => Path.Join(series.Path, e.RelativePath)).ToList().GetLongestCommonPath(),
ReleaseGroup = parsedEpisodeInfo.ReleaseGroup,
ReleaseQuality = parsedEpisodeInfo.Quality