From beb33883b8fe095e1ef513d2b30170eabde03316 Mon Sep 17 00:00:00 2001 From: rcourtman Date: Fri, 26 Dec 2025 11:57:29 +0000 Subject: [PATCH] fix(storage): add toggleable flag to column definitions The columns weren't appearing in the ColumnPicker because they were missing the 'toggleable: true' property. --- .../src/components/Storage/Storage.tsx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/frontend-modern/src/components/Storage/Storage.tsx b/frontend-modern/src/components/Storage/Storage.tsx index 1d591816a..963e7b009 100644 --- a/frontend-modern/src/components/Storage/Storage.tsx +++ b/frontend-modern/src/components/Storage/Storage.tsx @@ -65,18 +65,18 @@ const Storage: Component = () => { // Column definitions for storage table const STORAGE_COLUMNS: ColumnDef[] = [ - { id: 'type', label: 'Type', priority: 3 }, - { id: 'content', label: 'Content', priority: 4 }, - { id: 'status', label: 'Status', priority: 2 }, - { id: 'shared', label: 'Shared', priority: 5, hiddenByDefault: true }, - { id: 'free', label: 'Free', priority: 4 }, - { id: 'total', label: 'Total', priority: 3 }, + { id: 'type', label: 'Type', priority: 3, toggleable: true }, + { id: 'content', label: 'Content', priority: 4, toggleable: true }, + { id: 'status', label: 'Status', priority: 2, toggleable: true }, + { id: 'shared', label: 'Shared', priority: 5, toggleable: true }, + { id: 'free', label: 'Free', priority: 4, toggleable: true }, + { id: 'total', label: 'Total', priority: 3, toggleable: true }, ]; // Column visibility management const columnVisibility = useColumnVisibility( - STORAGE_COLUMNS, - STORAGE_KEYS.STORAGE_HIDDEN_COLUMNS + STORAGE_KEYS.STORAGE_HIDDEN_COLUMNS, + STORAGE_COLUMNS ); const isColumnVisible = (id: string) => !columnVisibility.isHiddenByUser(id);