mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-14 05:07:31 +00:00
ui: storage content: allow to specify extraColumns (again)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
1be81ae0d6
commit
ebea3f4507
@ -359,9 +359,13 @@ Ext.define('PVE.storage.ContentView', {
|
|||||||
|
|
||||||
if (me.hideColumns) {
|
if (me.hideColumns) {
|
||||||
me.hideColumns.forEach(key => delete availableColumns[key]);
|
me.hideColumns.forEach(key => delete availableColumns[key]);
|
||||||
} else if (!me.hasNotesColumn) {
|
}
|
||||||
|
if (!me.hasNotesColumn) {
|
||||||
delete availableColumns.notes;
|
delete availableColumns.notes;
|
||||||
}
|
}
|
||||||
|
if (me.extraColumns && typeof me.extraColumns === 'object') {
|
||||||
|
Object.assign(availableColumns, me.extraColumns);
|
||||||
|
}
|
||||||
const columns = Object.values(availableColumns);
|
const columns = Object.values(availableColumns);
|
||||||
|
|
||||||
Ext.apply(me, {
|
Ext.apply(me, {
|
||||||
|
Loading…
Reference in New Issue
Block a user