fix: channels

feat: database backup is realtime now
This commit is contained in:
Andras Bacsai committed 2023-12-11 10:23:10 +01:00
1 parent 63dff5961e
commit 3ffd3fc819
15 files changed
+81 -26

No files matched your search

@@ -10,7 +10,15 @@ class BackupExecutions extends Component
public $backup;
public $executions;
public $setDeletableBackup;
protected $listeners = ['refreshBackupExecutions', 'deleteBackup'];
public function getListeners()
{
$userId = auth()->user()->id;
return [
"echo-private:team.{$userId},BackupCreated" => 'refreshBackupExecutions',
"refreshBackupExecutions",
"deleteBackup"
];
}
public function deleteBackup($exeuctionId)
{
+1 -1
View File
@@ -21,7 +21,7 @@ class Heading extends Component
{
$userId = auth()->user()->id;
return [
"echo-private:custom.{$userId},DatabaseStatusChanged" => 'activityFinished',
"echo-private:user.{$userId},DatabaseStatusChanged" => 'activityFinished',
];
}
+1 -1
View File
@@ -17,7 +17,7 @@ class Index extends Component
{
$userId = auth()->user()->id;
return [
"echo-private:custom.{$userId},ServiceStatusChanged" => 'checkStatus',
"echo-private:user.{$userId},ServiceStatusChanged" => 'checkStatus',
"refreshStacks",
"checkStatus",
];