mirror of
https://github.com/QuantumNous/new-api.git
synced 2026-09-06 17:46:23 +00:00
feat(data-table): add column visibility storage functionality for API keys, channels, and usage logs
This commit is contained in:
@@ -57,6 +57,8 @@ import { DataTableBulkActions } from './data-table-bulk-actions'
|
||||
import { DataTableRowActions } from './data-table-row-actions'
|
||||
|
||||
const route = getRouteApi('/_authenticated/keys/')
|
||||
const API_KEYS_COLUMN_VISIBILITY_STORAGE_KEY =
|
||||
'api-keys:column-visibility'
|
||||
|
||||
function isDisabledApiKeyRow(apiKey: ApiKey) {
|
||||
return apiKey.status !== API_KEY_STATUS.ENABLED
|
||||
@@ -264,6 +266,7 @@ export function ApiKeysTable() {
|
||||
columns,
|
||||
enableRowSelection: true,
|
||||
columnFilters,
|
||||
columnVisibilityStorageKey: API_KEYS_COLUMN_VISIBILITY_STORAGE_KEY,
|
||||
globalFilter,
|
||||
pagination,
|
||||
globalFilterFn: () => true,
|
||||
|
||||
Reference in New Issue
Block a user