mirror of
https://github.com/Sonarr/Sonarr.git
synced 2025-01-15 10:39:47 +02:00
Fixed: Fixed size on disk not showing for series in overview view
Closes #4000
This commit is contained in:
parent
f4f2a6f5fc
commit
d105dd47e0
@ -101,7 +101,8 @@ class SeriesIndexOverview extends Component {
|
|||||||
seasonCount,
|
seasonCount,
|
||||||
episodeCount,
|
episodeCount,
|
||||||
episodeFileCount,
|
episodeFileCount,
|
||||||
totalEpisodeCount
|
totalEpisodeCount,
|
||||||
|
sizeOnDisk
|
||||||
} = statistics;
|
} = statistics;
|
||||||
|
|
||||||
const {
|
const {
|
||||||
@ -212,6 +213,7 @@ class SeriesIndexOverview extends Component {
|
|||||||
nextAiring={nextAiring}
|
nextAiring={nextAiring}
|
||||||
seasonCount={seasonCount}
|
seasonCount={seasonCount}
|
||||||
qualityProfile={qualityProfile}
|
qualityProfile={qualityProfile}
|
||||||
|
sizeOnDisk={sizeOnDisk}
|
||||||
showRelativeDates={showRelativeDates}
|
showRelativeDates={showRelativeDates}
|
||||||
shortDateFormat={shortDateFormat}
|
shortDateFormat={shortDateFormat}
|
||||||
longDateFormat={longDateFormat}
|
longDateFormat={longDateFormat}
|
||||||
|
@ -15,7 +15,6 @@ const rows = [
|
|||||||
name: 'monitored',
|
name: 'monitored',
|
||||||
showProp: 'showMonitored',
|
showProp: 'showMonitored',
|
||||||
valueProp: 'monitored'
|
valueProp: 'monitored'
|
||||||
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'network',
|
name: 'network',
|
||||||
|
@ -71,7 +71,8 @@ class SeriesIndexOverviews extends Component {
|
|||||||
items,
|
items,
|
||||||
sortKey,
|
sortKey,
|
||||||
overviewOptions,
|
overviewOptions,
|
||||||
jumpToCharacter
|
jumpToCharacter,
|
||||||
|
isSmallScreen
|
||||||
} = this.props;
|
} = this.props;
|
||||||
|
|
||||||
const {
|
const {
|
||||||
@ -81,13 +82,17 @@ class SeriesIndexOverviews extends Component {
|
|||||||
|
|
||||||
if (prevProps.sortKey !== sortKey ||
|
if (prevProps.sortKey !== sortKey ||
|
||||||
prevProps.overviewOptions !== overviewOptions) {
|
prevProps.overviewOptions !== overviewOptions) {
|
||||||
this.calculateGrid();
|
this.calculateGrid(this.state.width, isSmallScreen);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this._grid &&
|
if (
|
||||||
|
this._grid &&
|
||||||
(prevState.width !== width ||
|
(prevState.width !== width ||
|
||||||
prevState.rowHeight !== rowHeight ||
|
prevState.rowHeight !== rowHeight ||
|
||||||
hasDifferentItemsOrOrder(prevProps.items, items))) {
|
hasDifferentItemsOrOrder(prevProps.items, items) ||
|
||||||
|
prevProps.overviewOptions !== overviewOptions
|
||||||
|
)
|
||||||
|
) {
|
||||||
// recomputeGridSize also forces Grid to discard its cache of rendered cells
|
// recomputeGridSize also forces Grid to discard its cache of rendered cells
|
||||||
this._grid.recomputeGridSize();
|
this._grid.recomputeGridSize();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user