parent
b8af3af9f1
commit
fb540040ef
@ -0,0 +1,67 @@
|
|||||||
|
import React from 'react';
|
||||||
|
import translate from 'Utilities/String/translate';
|
||||||
|
import FilterBuilderRowValue from './FilterBuilderRowValue';
|
||||||
|
import FilterBuilderRowValueProps from './FilterBuilderRowValueProps';
|
||||||
|
|
||||||
|
const statusTagList = [
|
||||||
|
{
|
||||||
|
id: 'queued',
|
||||||
|
get name() {
|
||||||
|
return translate('Queued');
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 'paused',
|
||||||
|
get name() {
|
||||||
|
return translate('Paused');
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 'downloading',
|
||||||
|
get name() {
|
||||||
|
return translate('Downloading');
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 'completed',
|
||||||
|
get name() {
|
||||||
|
return translate('Completed');
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 'failed',
|
||||||
|
get name() {
|
||||||
|
return translate('Failed');
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 'warning',
|
||||||
|
get name() {
|
||||||
|
return translate('Warning');
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 'delay',
|
||||||
|
get name() {
|
||||||
|
return translate('Delay');
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 'downloadClientUnavailable',
|
||||||
|
get name() {
|
||||||
|
return translate('DownloadClientUnavailable');
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: 'fallback',
|
||||||
|
get name() {
|
||||||
|
return translate('Fallback');
|
||||||
|
},
|
||||||
|
},
|
||||||
|
];
|
||||||
|
|
||||||
|
function QueueStatusFilterBuilderRowValue(props: FilterBuilderRowValueProps) {
|
||||||
|
return <FilterBuilderRowValue {...props} tagList={statusTagList} />;
|
||||||
|
}
|
||||||
|
|
||||||
|
export default QueueStatusFilterBuilderRowValue;
|
@ -0,0 +1,16 @@
|
|||||||
|
namespace NzbDrone.Core.Queue
|
||||||
|
{
|
||||||
|
public enum QueueStatus
|
||||||
|
{
|
||||||
|
Unknown,
|
||||||
|
Queued,
|
||||||
|
Paused,
|
||||||
|
Downloading,
|
||||||
|
Completed,
|
||||||
|
Failed,
|
||||||
|
Warning,
|
||||||
|
Delay,
|
||||||
|
DownloadClientUnavailable,
|
||||||
|
Fallback
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in new issue