From c6403abd86cc2bdb09a65f2202b7db5750528a78 Mon Sep 17 00:00:00 2001 From: Bozhidar Date: Wed, 11 Sep 2024 15:53:02 +0300 Subject: [PATCH] Update GitRepositoryResource.php --- .../App/Filament/Resources/GitRepositoryResource.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/web/Modules/Customer/App/Filament/Resources/GitRepositoryResource.php b/web/Modules/Customer/App/Filament/Resources/GitRepositoryResource.php index a06118c..5d24923 100644 --- a/web/Modules/Customer/App/Filament/Resources/GitRepositoryResource.php +++ b/web/Modules/Customer/App/Filament/Resources/GitRepositoryResource.php @@ -32,6 +32,7 @@ class GitRepositoryResource extends Resource ->label('Directory') ->required() ->columnSpanFull(), + ]); } @@ -66,6 +67,11 @@ class GitRepositoryResource extends Resource Tables\Columns\TextColumn::make('dir') ->searchable() ->sortable(), + + Tables\Columns\TextColumn::make('status') + ->searchable() + ->badge() + ->sortable(), ]) ->filters([ // @@ -73,6 +79,7 @@ class GitRepositoryResource extends Resource ->actions([ Tables\Actions\EditAction::make(), Tables\Actions\Action::make('pull') + ->hidden(fn (GitRepository $record) => $record->status !== 'cloned') ->icon('heroicon-o-arrow-down-tray') ->action(function (GitRepository $record) {