Skip to content

Commit

Permalink
fix: display status by overriding the function (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
vincent-tarrit committed Apr 30, 2023
1 parent 600ad08 commit abd49da
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion resources/views/pages/backups.blade.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<x-filament::page>
@if(!$this->getHideBackupStatusTable())
@if($this->shouldDisplayStatusListRecords())
@livewire(ShuvroRoy\FilamentSpatieLaravelBackup\Components\BackupDestinationStatusListRecords::class)
@endif
<div class="!mt-8">
Expand Down
9 changes: 2 additions & 7 deletions src/Pages/Backups.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

0 comments on commit abd49da

Please sign in to comment.