Rename 'On Upgrade' to 'On File Upgrade'

pull/6970/head
Mark McDowall 7 months ago committed by Mark McDowall
parent 6afd3bd344
commit f5ccf98162

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

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

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

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

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

Loading…
Cancel
Save