fix: use TextColumn instead of IconColumn for node type display

This commit is contained in:
2026-03-02 07:18:49 -05:00
parent 5f2e591c6e
commit 3879dab60b

View File

@@ -146,14 +146,11 @@ class NodeResource extends Resource
->sortable()
->searchable()
->toggleable(),
Tables\Columns\IconColumn::make('is_lxc')
Tables\Columns\TextColumn::make('is_lxc')
->label('Type')
->boolean()
->trueIcon('ri-checkbox-circle-fill')
->falseIcon('ri-close-circle-fill')
->trueColor('info')
->falseColor('gray')
->formatStateUsing(fn (bool $state): string => $state ? 'LXC' : 'KVM')
->formatStateUsing(fn (bool $state): string => $state ? 'Container' : 'VM')
->badge()
->color(fn (bool $state): string => $state ? 'info' : 'gray')
->toggleable(),
])
->filters([