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,
|
||||
episodeCount,
|
||||
episodeFileCount,
|
||||
totalEpisodeCount
|
||||
totalEpisodeCount,
|
||||
sizeOnDisk
|
||||
} = statistics;
|
||||
|
||||
const {
|
||||
|
@ -212,6 +213,7 @@ class SeriesIndexOverview extends Component {
|
|||
nextAiring={nextAiring}
|
||||
seasonCount={seasonCount}
|
||||
qualityProfile={qualityProfile}
|
||||
sizeOnDisk={sizeOnDisk}
|
||||
showRelativeDates={showRelativeDates}
|
||||
shortDateFormat={shortDateFormat}
|
||||
longDateFormat={longDateFormat}
|
||||
|
|
|
@ -15,7 +15,6 @@ const rows = [
|
|||
name: 'monitored',
|
||||
showProp: 'showMonitored',
|
||||
valueProp: 'monitored'
|
||||
|
||||
},
|
||||
{
|
||||
name: 'network',
|
||||
|
|
|
@ -71,7 +71,8 @@ class SeriesIndexOverviews extends Component {
|
|||
items,
|
||||
sortKey,
|
||||
overviewOptions,
|
||||
jumpToCharacter
|
||||
jumpToCharacter,
|
||||
isSmallScreen
|
||||
} = this.props;
|
||||
|
||||
const {
|
||||
|
@ -81,13 +82,17 @@ class SeriesIndexOverviews extends Component {
|
|||
|
||||
if (prevProps.sortKey !== sortKey ||
|
||||
prevProps.overviewOptions !== overviewOptions) {
|
||||
this.calculateGrid();
|
||||
this.calculateGrid(this.state.width, isSmallScreen);
|
||||
}
|
||||
|
||||
if (this._grid &&
|
||||
if (
|
||||
this._grid &&
|
||||
(prevState.width !== width ||
|
||||
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
|
||||
this._grid.recomputeGridSize();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue