mirror of
https://github.com/fergalmoran/Readarr.git
synced 2026-01-08 01:38:11 +00:00
New: Add Size column to Activity: Queue (#1116)
* New: Add Size column to Activity: Queue (cherry picked from commit 43cd1032487743c72fe0503a293343b8811def4d) * fixup! Lint Co-authored-by: Nathaniel Peiffer <nathaniel@peiffer.com.au> Co-authored-by: Qstick <qstick@gmail.com>
This commit is contained in:
@@ -15,6 +15,7 @@ import TableRow from 'Components/Table/TableRow';
|
||||
import Popover from 'Components/Tooltip/Popover';
|
||||
import { icons, kinds, tooltipPositions } from 'Helpers/Props';
|
||||
import InteractiveImportModal from 'InteractiveImport/InteractiveImportModal';
|
||||
import formatBytes from 'Utilities/Number/formatBytes';
|
||||
import translate from 'Utilities/String/translate';
|
||||
import QueueStatusCell from './QueueStatusCell';
|
||||
import RemoveQueueItemModal from './RemoveQueueItemModal';
|
||||
@@ -230,6 +231,12 @@ class QueueRow extends Component {
|
||||
);
|
||||
}
|
||||
|
||||
if (name === 'size') {
|
||||
return (
|
||||
<TableRowCell key={name}>{formatBytes(size)}</TableRowCell>
|
||||
);
|
||||
}
|
||||
|
||||
if (name === 'outputPath') {
|
||||
return (
|
||||
<TableRowCell key={name}>
|
||||
|
||||
@@ -111,6 +111,12 @@ export const defaultState = {
|
||||
isSortable: true,
|
||||
isVisible: false
|
||||
},
|
||||
{
|
||||
name: 'size',
|
||||
label: 'Size',
|
||||
isSortable: true,
|
||||
isVisibile: false
|
||||
},
|
||||
{
|
||||
name: 'outputPath',
|
||||
label: translate('OutputPath'),
|
||||
|
||||
Reference in New Issue
Block a user