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.

chore(ui): remove unused stopEvent code

peaklabs-dev5f426603c7a9
diff --git a/resources/views/livewire/project/application/heading.blade.php b/resources/views/livewire/project/application/heading.blade.php
index 361522aa77..6b5c33cdbf 100644
--- a/resources/views/livewire/project/application/heading.blade.php
+++ b/resources/views/livewire/project/application/heading.blade.php
@@ -111,15 +111,5 @@
</div>
@endif
</div>
-
</div>
- @script
- <script>
- $wire.$on('stopEvent', () => {
- $wire.$dispatch('info',
- 'Gracefully stopping application, it could take a while depending on the application.');
- $wire.$call('stop');
- });
- </script>
- @endscript
</nav>
diff --git a/resources/views/livewire/project/database/heading.blade.php b/resources/views/livewire/project/database/heading.blade.php
index f6a76b5b7e..9ad93e6329 100644
--- a/resources/views/livewire/project/database/heading.blade.php
+++ b/resources/views/livewire/project/database/heading.blade.php
@@ -92,10 +92,6 @@
window.dispatchEvent(new CustomEvent('startdatabase'));
$wire.$call('start');
});
- $wire.$on('stopEvent', () => {
- $wire.$dispatch('info', 'Stopping database.');
- $wire.$call('stop');
- });
$wire.$on('restartEvent', () => {
$wire.$dispatch('info', 'Restarting database.');
window.dispatchEvent(new CustomEvent('startdatabase'));