Update ManageHostingSubscriptionFileManager.php

This commit is contained in:
Bozhidar 2024-05-13 20:49:23 +03:00
parent 33b2b07e8d
commit 08e0983e66

View file

@ -144,18 +144,18 @@ class ManageHostingSubscriptionFileManager extends ViewRecord implements HasTabl
}),
])
->checkIfRecordIsSelectableUsing(fn (FileItem $record): bool => ! $record->isPreviousPath())
// ->headerActionsPosition(HeaderActionsPosition::Bottom)
->headerActionsPosition(HeaderActionsPosition::Bottom)
->headerActions([
Action::make('home')
->label('Home')
->action(fn () => $this->path = '')
->icon('heroicon-o-home'),
Action::make('back')
->label('Back')
->action(fn () => $this->path = dirname($this->path))
->icon('heroicon-o-arrow-left'),
// Action::make('home')
// ->label('Home')
// ->action(fn () => $this->path = '')
// ->icon('heroicon-o-home'),
//
// Action::make('back')
// ->label('Back')
// ->action(fn () => $this->path = dirname($this->path))
// ->icon('heroicon-o-arrow-left'),
Action::make('create_folder')
->label('Create Folder')