mirror of https://github.com/lidarr/Lidarr
parent
a9b16d298f
commit
d8066ec172
|
@ -175,7 +175,7 @@ class AlbumDetailsMedium extends Component {
|
||||||
</Table> :
|
</Table> :
|
||||||
|
|
||||||
<div className={styles.noTracks}>
|
<div className={styles.noTracks}>
|
||||||
No tracks in this medium
|
{translate('NoTracksInThisMedium')}
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
<div className={styles.collapseButtonContainer}>
|
<div className={styles.collapseButtonContainer}>
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
width: 42px;
|
width: 42px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.size,
|
||||||
.status {
|
.status {
|
||||||
composes: cell from '~Components/Table/Cells/TableRowCell.css';
|
composes: cell from '~Components/Table/Cells/TableRowCell.css';
|
||||||
|
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
// Please do not change this file!
|
// Please do not change this file!
|
||||||
interface CssExports {
|
interface CssExports {
|
||||||
'monitored': string;
|
'monitored': string;
|
||||||
|
'size': string;
|
||||||
'status': string;
|
'status': string;
|
||||||
'title': string;
|
'title': string;
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,6 +10,7 @@ import TableRowCell from 'Components/Table/Cells/TableRowCell';
|
||||||
import TableRow from 'Components/Table/TableRow';
|
import TableRow from 'Components/Table/TableRow';
|
||||||
import { kinds, sizes } from 'Helpers/Props';
|
import { kinds, sizes } from 'Helpers/Props';
|
||||||
import formatTimeSpan from 'Utilities/Date/formatTimeSpan';
|
import formatTimeSpan from 'Utilities/Date/formatTimeSpan';
|
||||||
|
import formatBytes from 'Utilities/Number/formatBytes';
|
||||||
import translate from 'Utilities/String/translate';
|
import translate from 'Utilities/String/translate';
|
||||||
import styles from './AlbumRow.css';
|
import styles from './AlbumRow.css';
|
||||||
|
|
||||||
|
@ -87,7 +88,8 @@ class AlbumRow extends Component {
|
||||||
const {
|
const {
|
||||||
trackCount = 0,
|
trackCount = 0,
|
||||||
trackFileCount = 0,
|
trackFileCount = 0,
|
||||||
totalTrackCount = 0
|
totalTrackCount = 0,
|
||||||
|
sizeOnDisk = 0
|
||||||
} = statistics;
|
} = statistics;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
@ -196,6 +198,17 @@ class AlbumRow extends Component {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (name === 'size') {
|
||||||
|
return (
|
||||||
|
<TableRowCell
|
||||||
|
key={name}
|
||||||
|
className={styles.size}
|
||||||
|
>
|
||||||
|
{!!sizeOnDisk && formatBytes(sizeOnDisk)}
|
||||||
|
</TableRowCell>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
if (name === 'status') {
|
if (name === 'status') {
|
||||||
return (
|
return (
|
||||||
<TableRowCell
|
<TableRowCell
|
||||||
|
|
|
@ -196,7 +196,7 @@ class ArtistDetailsSeason extends Component {
|
||||||
trackFileCount,
|
trackFileCount,
|
||||||
monitoredAlbumCount,
|
monitoredAlbumCount,
|
||||||
hasMonitoredAlbums,
|
hasMonitoredAlbums,
|
||||||
sizeOnDisk
|
sizeOnDisk = 0
|
||||||
} = getAlbumStatistics(items);
|
} = getAlbumStatistics(items);
|
||||||
|
|
||||||
const {
|
const {
|
||||||
|
|
|
@ -36,6 +36,11 @@ export const defaultState = {
|
||||||
sortPredicates: {
|
sortPredicates: {
|
||||||
rating: function(item) {
|
rating: function(item) {
|
||||||
return item.ratings.value;
|
return item.ratings.value;
|
||||||
|
},
|
||||||
|
size: function(item) {
|
||||||
|
const { statistics = {} } = item;
|
||||||
|
|
||||||
|
return statistics.sizeOnDisk || 0;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -81,6 +86,12 @@ export const defaultState = {
|
||||||
isSortable: true,
|
isSortable: true,
|
||||||
isVisible: false
|
isVisible: false
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: 'size',
|
||||||
|
label: () => translate('Size'),
|
||||||
|
isSortable: true,
|
||||||
|
isVisible: false
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: 'rating',
|
name: 'rating',
|
||||||
label: () => translate('Rating'),
|
label: () => translate('Rating'),
|
||||||
|
|
|
@ -725,6 +725,7 @@
|
||||||
"NoMissingItems": "No missing items",
|
"NoMissingItems": "No missing items",
|
||||||
"NoResultsFound": "No results found",
|
"NoResultsFound": "No results found",
|
||||||
"NoTagsHaveBeenAddedYet": "No tags have been added yet",
|
"NoTagsHaveBeenAddedYet": "No tags have been added yet",
|
||||||
|
"NoTracksInThisMedium": "No tracks in this medium",
|
||||||
"NoUpdatesAreAvailable": "No updates are available",
|
"NoUpdatesAreAvailable": "No updates are available",
|
||||||
"None": "None",
|
"None": "None",
|
||||||
"NoneData": "No albums will be monitored",
|
"NoneData": "No albums will be monitored",
|
||||||
|
|
Loading…
Reference in New Issue