diff --git a/www/manager6/storage/BackupView.js b/www/manager6/storage/BackupView.js index 0613c94d7..5fec3b186 100644 --- a/www/manager6/storage/BackupView.js +++ b/www/manager6/storage/BackupView.js @@ -3,6 +3,8 @@ Ext.define('PVE.storage.BackupView', { alias: 'widget.pveStorageBackupView', + showColumns: ['name', 'notes', 'date', 'format', 'size'], + initComponent: function() { var me = this; diff --git a/www/manager6/storage/Browser.js b/www/manager6/storage/Browser.js index fe5df3e29..1916ff6ae 100644 --- a/www/manager6/storage/Browser.js +++ b/www/manager6/storage/Browser.js @@ -63,7 +63,6 @@ Ext.define('PVE.storage.Browser', { iconCls: 'fa fa-floppy-o', itemId: 'contentBackup', pluginType: plugin, - hasNotesColumn: true, }); } if (contents.includes('images')) { diff --git a/www/manager6/storage/ContentView.js b/www/manager6/storage/ContentView.js index 3f5b686ba..9ba2b4ced 100644 --- a/www/manager6/storage/ContentView.js +++ b/www/manager6/storage/ContentView.js @@ -371,12 +371,14 @@ Ext.define('PVE.storage.ContentView', { }, }; - if (me.hideColumns) { - me.hideColumns.forEach(key => delete availableColumns[key]); - } - if (!me.hasNotesColumn) { - delete availableColumns.notes; - } + let showColumns = me.showColumns || ['name', 'date', 'format', 'size']; + + Object.keys(availableColumns).forEach(function(key) { + if (!showColumns.includes(key)) { + delete availableColumns[key]; + } + }); + if (me.extraColumns && typeof me.extraColumns === 'object') { Object.assign(availableColumns, me.extraColumns); }