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",
];
+3 -3
View File
@@ -8,12 +8,12 @@ class Sponsorship extends Component
{
public function getListeners()
{
$userId = auth()->user()->id;
$teamId = auth()->user()->currentTeam()->id;
return [
"echo-private:custom.{$userId},TestEvent" => 'testEvent',
"echo-private:team.{$teamId},TestEvent" => 'testEvent',
];
}
public function testEvent($asd)
public function testEvent()
{
$this->dispatch('success', 'Realtime events configured!');
}