New: Output Path column in Queue

pull/789/head
Qstick 6 years ago
parent e4f1e5d376
commit a3e955443d

@ -77,6 +77,7 @@ class QueueRow extends Component {
quality, quality,
protocol, protocol,
indexer, indexer,
outputPath,
downloadClient, downloadClient,
downloadForced, downloadForced,
estimatedCompletionTime, estimatedCompletionTime,
@ -238,6 +239,14 @@ class QueueRow extends Component {
); );
} }
if (name === 'outputPath') {
return (
<TableRowCell key={name}>
{outputPath}
</TableRowCell>
);
}
if (name === 'estimatedCompletionTime') { if (name === 'estimatedCompletionTime') {
return ( return (
<TimeleftCell <TimeleftCell
@ -359,6 +368,7 @@ QueueRow.propTypes = {
quality: PropTypes.object.isRequired, quality: PropTypes.object.isRequired,
protocol: PropTypes.string.isRequired, protocol: PropTypes.string.isRequired,
indexer: PropTypes.string, indexer: PropTypes.string,
outputPath: PropTypes.string,
downloadClient: PropTypes.string, downloadClient: PropTypes.string,
downloadForced: PropTypes.bool.isRequired, downloadForced: PropTypes.bool.isRequired,
estimatedCompletionTime: PropTypes.string, estimatedCompletionTime: PropTypes.string,

@ -116,6 +116,12 @@ export const defaultState = {
isSortable: true, isSortable: true,
isVisible: false isVisible: false
}, },
{
name: 'outputPath',
label: 'Output Path',
isSortable: false,
isVisible: false
},
{ {
name: 'estimatedCompletionTime', name: 'estimatedCompletionTime',
label: 'Timeleft', label: 'Timeleft',

@ -32,6 +32,7 @@ namespace Lidarr.Api.V1.Queue
public DownloadProtocol Protocol { get; set; } public DownloadProtocol Protocol { get; set; }
public string DownloadClient { get; set; } public string DownloadClient { get; set; }
public string Indexer { get; set; } public string Indexer { get; set; }
public string OutputPath { get; set; }
public bool DownloadForced { get; set; } public bool DownloadForced { get; set; }
} }
@ -63,6 +64,7 @@ namespace Lidarr.Api.V1.Queue
Protocol = model.Protocol, Protocol = model.Protocol,
DownloadClient = model.DownloadClient, DownloadClient = model.DownloadClient,
Indexer = model.Indexer, Indexer = model.Indexer,
OutputPath = model.OutputPath,
DownloadForced = model.DownloadForced DownloadForced = model.DownloadForced
}; };
} }

@ -29,6 +29,7 @@ namespace NzbDrone.Core.Queue
public DownloadProtocol Protocol { get; set; } public DownloadProtocol Protocol { get; set; }
public string DownloadClient { get; set; } public string DownloadClient { get; set; }
public string Indexer { get; set; } public string Indexer { get; set; }
public string OutputPath { get; set; }
public string ErrorMessage { get; set; } public string ErrorMessage { get; set; }
public bool DownloadForced { get; set; } public bool DownloadForced { get; set; }
} }

@ -89,6 +89,7 @@ namespace NzbDrone.Core.Queue
Protocol = trackedDownload.Protocol, Protocol = trackedDownload.Protocol,
DownloadClient = trackedDownload.DownloadItem.DownloadClient, DownloadClient = trackedDownload.DownloadItem.DownloadClient,
Indexer = trackedDownload.Indexer, Indexer = trackedDownload.Indexer,
OutputPath = trackedDownload.DownloadItem.OutputPath.ToString(),
DownloadForced = downloadForced DownloadForced = downloadForced
}; };

Loading…
Cancel
Save