Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

Revert "fix: S3 download and database restore output showing same content"

Andras Bacsai226de3514606
diff --git a/app/Livewire/Project/Database/Import.php b/app/Livewire/Project/Database/Import.php
index 11902fe9d3..fe30b6f671 100644
--- a/app/Livewire/Project/Database/Import.php
+++ b/app/Livewire/Project/Database/Import.php
@@ -263,7 +263,7 @@ EOD;
'container' => $this->container,
'serverId' => $this->server->id,
]);
- $this->dispatch('activityMonitor', $activity->id)->to('database-restore-monitor');
+ $this->dispatch('activityMonitor', $activity->id);
}
} catch (\Throwable $e) {
return handleError($e, $this);
@@ -404,7 +404,7 @@ EOD;
$this->s3DownloadedFile = $downloadPath;
$this->filename = $downloadPath;
- $this->dispatch('activityMonitor', $activity->id)->to('s3-download-monitor');
+ $this->dispatch('activityMonitor', $activity->id);
$this->dispatch('info', 'Downloading file from S3. This may take a few minutes for large backups...');
} catch (\Throwable $e) {
$this->s3DownloadInProgress = false;
@@ -486,7 +486,7 @@ EOD;
's3DownloadedFile' => $this->s3DownloadedFile,
'resourceUuid' => $this->resource->uuid,
]);
- $this->dispatch('activityMonitor', $activity->id)->to('database-restore-monitor');
+ $this->dispatch('activityMonitor', $activity->id);
}
} catch (\Throwable $e) {
return handleError($e, $this);
diff --git a/resources/views/livewire/project/database/import.blade.php b/resources/views/livewire/project/database/import.blade.php
index 865e5b4603..be5b0f00a4 100644
--- a/resources/views/livewire/project/database/import.blade.php
+++ b/resources/views/livewire/project/database/import.blade.php
@@ -150,7 +150,7 @@
<div x-show="s3DownloadInProgress" class="pt-2">
<div class="text-sm text-warning">Downloading from S3... This may take a few minutes for large
backups.</div>
- <livewire:activity-monitor key="s3-download-monitor" header="S3 Download Progress" :showWaiting="false" />
+ <livewire:activity-monitor header="S3 Download Progress" :showWaiting="false" />
</div>
<div x-show="s3DownloadedFile && !s3DownloadInProgress" class="pt-2">
@@ -173,7 +173,7 @@
<x-forms.button class="w-full my-4" wire:click='runImport'>Restore Backup</x-forms.button>
</div>
<div class="container w-full mx-auto" x-show="$wire.importRunning">
- <livewire:activity-monitor key="database-restore-monitor" header="Database Restore Output" :showWaiting="false" />
+ <livewire:activity-monitor header="Database Restore Output" :showWaiting="false" />
</div>
@else
<div>Database must be running to restore a backup.</div>