New: Size on Disk in Index and Editor

Fixes #977
This commit is contained in:
Qstick
2020-01-11 17:06:02 -05:00
parent d5e6cc542f
commit c8095faa1f
2 changed files with 20 additions and 6 deletions

View File

@@ -120,6 +120,12 @@ export const defaultState = {
isSortable: true,
isVisible: false
},
{
name: 'sizeOnDisk',
label: 'Size on Disk',
isSortable: true,
isVisible: false
},
{
name: 'genres',
label: 'Genres',
@@ -167,12 +173,6 @@ export const defaultState = {
return studio ? studio.toLowerCase() : '';
},
sizeOnDisk: function(item) {
const { statistics = {} } = item;
return statistics.sizeOnDisk;
},
ratings: function(item) {
const { ratings = {} } = item;