Skip to content

Commit

Permalink
fix: Table state not updating for related tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
lewislarsen committed Jul 14, 2024
1 parent b19896c commit e8aa9f3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
1 change: 1 addition & 0 deletions app/Livewire/BackupTasks/Buttons/RunTaskButton.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public function getListeners(): array
"echo-private:backup-tasks.{$this->backupTask->getAttribute('id')},BackupTaskStatusChanged" => 'refreshSelf',
"update-run-button-{$this->backupTask->getAttribute('id')}" => 'refreshSelf',
"pause-button-clicked-{$this->backupTask->getAttribute('id')}" => 'refreshSelf',
'refresh-backup-tasks-table' => 'refreshSelf', // Refresh everything!
];
}

Expand Down
12 changes: 0 additions & 12 deletions app/Livewire/BackupTasks/Tables/IndexTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,4 @@ public function render(): View

return view('livewire.backup-tasks.tables.index-table', ['backupTasks' => $backupTasks]);
}

/**
* Get the listeners array.
*
* @return array<string, string>
*/
protected function getListeners(): array
{
return [
'refresh-backup-tasks-table' => '$refresh',
];
}
}

0 comments on commit e8aa9f3

Please sign in to comment.