mirror of
https://github.com/lidarr/Lidarr
synced 2025-02-25 23:32:41 +00:00
New: Output Path column in Queue
This commit is contained in:
parent
e4f1e5d376
commit
a3e955443d
5 changed files with 20 additions and 0 deletions
|
@ -77,6 +77,7 @@ class QueueRow extends Component {
|
|||
quality,
|
||||
protocol,
|
||||
indexer,
|
||||
outputPath,
|
||||
downloadClient,
|
||||
downloadForced,
|
||||
estimatedCompletionTime,
|
||||
|
@ -238,6 +239,14 @@ class QueueRow extends Component {
|
|||
);
|
||||
}
|
||||
|
||||
if (name === 'outputPath') {
|
||||
return (
|
||||
<TableRowCell key={name}>
|
||||
{outputPath}
|
||||
</TableRowCell>
|
||||
);
|
||||
}
|
||||
|
||||
if (name === 'estimatedCompletionTime') {
|
||||
return (
|
||||
<TimeleftCell
|
||||
|
@ -359,6 +368,7 @@ QueueRow.propTypes = {
|
|||
quality: PropTypes.object.isRequired,
|
||||
protocol: PropTypes.string.isRequired,
|
||||
indexer: PropTypes.string,
|
||||
outputPath: PropTypes.string,
|
||||
downloadClient: PropTypes.string,
|
||||
downloadForced: PropTypes.bool.isRequired,
|
||||
estimatedCompletionTime: PropTypes.string,
|
||||
|
|
|
@ -116,6 +116,12 @@ export const defaultState = {
|
|||
isSortable: true,
|
||||
isVisible: false
|
||||
},
|
||||
{
|
||||
name: 'outputPath',
|
||||
label: 'Output Path',
|
||||
isSortable: false,
|
||||
isVisible: false
|
||||
},
|
||||
{
|
||||
name: 'estimatedCompletionTime',
|
||||
label: 'Timeleft',
|
||||
|
|
|
@ -32,6 +32,7 @@ public class QueueResource : RestResource
|
|||
public DownloadProtocol Protocol { get; set; }
|
||||
public string DownloadClient { get; set; }
|
||||
public string Indexer { get; set; }
|
||||
public string OutputPath { get; set; }
|
||||
public bool DownloadForced { get; set; }
|
||||
}
|
||||
|
||||
|
@ -63,6 +64,7 @@ public static QueueResource ToResource(this NzbDrone.Core.Queue.Queue model, boo
|
|||
Protocol = model.Protocol,
|
||||
DownloadClient = model.DownloadClient,
|
||||
Indexer = model.Indexer,
|
||||
OutputPath = model.OutputPath,
|
||||
DownloadForced = model.DownloadForced
|
||||
};
|
||||
}
|
||||
|
|
|
@ -29,6 +29,7 @@ public class Queue : ModelBase
|
|||
public DownloadProtocol Protocol { get; set; }
|
||||
public string DownloadClient { get; set; }
|
||||
public string Indexer { get; set; }
|
||||
public string OutputPath { get; set; }
|
||||
public string ErrorMessage { get; set; }
|
||||
public bool DownloadForced { get; set; }
|
||||
}
|
||||
|
|
|
@ -89,6 +89,7 @@ private Queue MapQueueItem(TrackedDownload trackedDownload, Album album)
|
|||
Protocol = trackedDownload.Protocol,
|
||||
DownloadClient = trackedDownload.DownloadItem.DownloadClient,
|
||||
Indexer = trackedDownload.Indexer,
|
||||
OutputPath = trackedDownload.DownloadItem.OutputPath.ToString(),
|
||||
DownloadForced = downloadForced
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue