Update ManageHostingSubscriptionFileManager.php

This commit is contained in:
Bozhidar 2024-05-13 20:51:26 +03:00
parent d7ce82f90a
commit abff1cd498

View file

@ -112,11 +112,11 @@ class ManageHostingSubscriptionFileManager extends ViewRecord implements HasTabl
->actions([
ActionGroup::make([
ViewAction::make('open')
->label('Open')
->hidden(fn (FileItem $record): bool => ! $record->canOpen())
->url(fn (FileItem $record): string => $storage->url($record->path))
->openUrlInNewTab(),
// ViewAction::make('open')
// ->label('Open')
// ->hidden(fn (FileItem $record): bool => ! $record->canOpen())
// ->url(fn (FileItem $record): string => $storage->url($record->path))
// ->openUrlInNewTab(),
Action::make('download')
->label('Download')
->icon('heroicon-o-document-arrow-down')