File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ import {
3535import { setSearchValue , tenantsApi } from '../../store/reducers/tenants/tenants' ;
3636import type { PreparedTenant } from '../../store/reducers/tenants/types' ;
3737import type { AdditionalTenantsProps } from '../../types/additionalProps' ;
38+ import { State } from '../../types/api/tenant' ;
3839import { uiFactory } from '../../uiFactory/uiFactory' ;
3940import { formatBytes } from '../../utils/bytesParsers' ;
4041import { cn } from '../../utils/cn' ;
@@ -65,14 +66,16 @@ const b = cn('tenants');
6566
6667const DATABASES_COLUMNS_WIDTH_LS_KEY = 'databasesTableColumnsWidth' ;
6768
68- function formatDatabaseState ( state ?: string ) : string {
69+ function formatDatabaseState ( state ?: State ) : string {
6970 if ( ! state ) {
7071 return EMPTY_DATA_PLACEHOLDER ;
7172 }
7273
7374 // Map specific state values to user-friendly display names
7475 switch ( state ) {
75- case 'PENDING_RESOURCES' :
76+ case State . STATE_UNSPECIFIED :
77+ return 'Unspecified' ;
78+ case State . PENDING_RESOURCES :
7679 return i18n ( 'value_pending' ) ;
7780 default :
7881 // For other states, use capitalized version (first letter uppercase, rest lowercase)
You can’t perform that action at this time.
0 commit comments