mirror of
https://github.com/PhyreApps/PhyrePanel.git
synced 2024-11-22 07:30:25 +00:00
Update GitRepositoryResource.php
This commit is contained in:
parent
b11e16b72e
commit
c6403abd86
1 changed files with 7 additions and 0 deletions
|
@ -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) {
|
||||
|
||||
|
|
Loading…
Reference in a new issue