From 58856b8ae4caa0fcb4653bcef79b69ec16903520 Mon Sep 17 00:00:00 2001 From: Bozhidar Date: Thu, 16 May 2024 11:47:40 +0300 Subject: [PATCH] Update BackupResource.php --- web/app/Filament/Resources/BackupResource.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/app/Filament/Resources/BackupResource.php b/web/app/Filament/Resources/BackupResource.php index a734b63..f4b1195 100644 --- a/web/app/Filament/Resources/BackupResource.php +++ b/web/app/Filament/Resources/BackupResource.php @@ -106,9 +106,9 @@ class BackupResource extends Resource Tables\Actions\Action::make('cancel') ->icon('heroicon-o-x-mark') -// ->hidden(function (Backup $backup) { -// return $backup->status !== BackupStatus::Processing; -// }) + ->hidden(function (Backup $backup) { + return $backup->status !== BackupStatus::Processing; + }) ->action(function (Backup $backup) { try {