Update BackupResource.php

This commit is contained in:
Bozhidar 2024-05-16 11:47:40 +03:00
parent 8bd55a3156
commit 58856b8ae4

View file

@ -106,9 +106,9 @@ class BackupResource extends Resource
Tables\Actions\Action::make('cancel') Tables\Actions\Action::make('cancel')
->icon('heroicon-o-x-mark') ->icon('heroicon-o-x-mark')
// ->hidden(function (Backup $backup) { ->hidden(function (Backup $backup) {
// return $backup->status !== BackupStatus::Processing; return $backup->status !== BackupStatus::Processing;
// }) })
->action(function (Backup $backup) { ->action(function (Backup $backup) {
try { try {