Skip to content

Commit

Permalink
Update DockerContainerResource.php
Browse files Browse the repository at this point in the history
  • Loading branch information
bobimicroweber committed Apr 28, 2024
1 parent 2dd5c10 commit 52573ae
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,16 @@ public static function table(Table $table): Table
->columns([
Tables\Columns\TextColumn::make('id'),
Tables\Columns\TextColumn::make('name'),
Tables\Columns\TextColumn::make('state')->badge(),
Tables\Columns\TextColumn::make('state')
->badge()
->color(fn (string $state): string => match ($state) {
'running' => 'success',
'exited' => 'danger',
'paused' => 'warning',
'restarting' => 'info',
'dead' => 'danger',
default => 'gray',
}),
Tables\Columns\TextColumn::make('status'),
Tables\Columns\TextColumn::make('image'),
Tables\Columns\TextColumn::make('port'),
Expand Down

0 comments on commit 52573ae

Please sign in to comment.