fix: use TextColumn instead of IconColumn for node type display
This commit is contained in:
@@ -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([
|
||||
|
||||
Reference in New Issue
Block a user