From abd49da4d7dc4eab8577c0196c8bcec7f4a93359 Mon Sep 17 00:00:00 2001 From: vincent-tarrit <91567748+vincent-tarrit@users.noreply.github.com> Date: Sun, 30 Apr 2023 20:12:26 +0300 Subject: [PATCH] fix: display status by overriding the function (#43) --- resources/views/pages/backups.blade.php | 2 +- src/Pages/Backups.php | 9 ++------- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/resources/views/pages/backups.blade.php b/resources/views/pages/backups.blade.php index 9beeb15..167183f 100644 --- a/resources/views/pages/backups.blade.php +++ b/resources/views/pages/backups.blade.php @@ -1,5 +1,5 @@ - @if(!$this->getHideBackupStatusTable()) + @if($this->shouldDisplayStatusListRecords()) @livewire(ShuvroRoy\FilamentSpatieLaravelBackup\Components\BackupDestinationStatusListRecords::class) @endif
diff --git a/src/Pages/Backups.php b/src/Pages/Backups.php index cb35922..9b5e703 100644 --- a/src/Pages/Backups.php +++ b/src/Pages/Backups.php @@ -56,13 +56,8 @@ public function create(string $option = ''): void $this->notify('success', __('filament-spatie-backup::backup.pages.backups.messages.backup_success')); } - public function hideBackupStatusTable(bool $condition = true): void + public function shouldDisplayStatusListRecords(): bool { - $this->hideBackupStatusTable = $condition; - } - - public function getHideBackupStatusTable(): bool - { - return $this->hideBackupStatusTable; + return true; } }