mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-06 13:02:23 -07:00
New: Add Size column to Activity: Queue (#2310)
* New: Add Size column to Activity: Queue (cherry picked from commit 43cd1032487743c72fe0503a293343b8811def4d) * !fixup Co-authored-by: Nathaniel Peiffer <nathaniel@peiffer.com.au> Co-authored-by: Qstick <qstick@gmail.com>
This commit is contained in:
parent
f001ef0cd0
commit
dd0353ee44
2 changed files with 13 additions and 0 deletions
|
@ -15,6 +15,7 @@ import TableRow from 'Components/Table/TableRow';
|
||||||
import Popover from 'Components/Tooltip/Popover';
|
import Popover from 'Components/Tooltip/Popover';
|
||||||
import { icons, kinds, tooltipPositions } from 'Helpers/Props';
|
import { icons, kinds, tooltipPositions } from 'Helpers/Props';
|
||||||
import InteractiveImportModal from 'InteractiveImport/InteractiveImportModal';
|
import InteractiveImportModal from 'InteractiveImport/InteractiveImportModal';
|
||||||
|
import formatBytes from 'Utilities/Number/formatBytes';
|
||||||
import QueueStatusCell from './QueueStatusCell';
|
import QueueStatusCell from './QueueStatusCell';
|
||||||
import RemoveQueueItemModal from './RemoveQueueItemModal';
|
import RemoveQueueItemModal from './RemoveQueueItemModal';
|
||||||
import TimeleftCell from './TimeleftCell';
|
import TimeleftCell from './TimeleftCell';
|
||||||
|
@ -246,6 +247,12 @@ class QueueRow extends Component {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (name === 'size') {
|
||||||
|
return (
|
||||||
|
<TableRowCell key={name}>{formatBytes(size)}</TableRowCell>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
if (name === 'outputPath') {
|
if (name === 'outputPath') {
|
||||||
return (
|
return (
|
||||||
<TableRowCell key={name}>
|
<TableRowCell key={name}>
|
||||||
|
|
|
@ -110,6 +110,12 @@ export const defaultState = {
|
||||||
isSortable: true,
|
isSortable: true,
|
||||||
isVisible: false
|
isVisible: false
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: 'size',
|
||||||
|
label: 'Size',
|
||||||
|
isSortable: true,
|
||||||
|
isVisibile: false
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: 'outputPath',
|
name: 'outputPath',
|
||||||
label: 'Output Path',
|
label: 'Output Path',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue