chore: Update navbar and configuration to improve service status check functionality

This commit is contained in:
Andras Bacsai
2024-08-06 14:02:24 +02:00
parent c648e0dff9
commit c9a7af0ffa
3 changed files with 7 additions and 2 deletions

View File

@@ -49,6 +49,11 @@ class Navbar extends Component
}
}
public function check_status_without_notification()
{
$this->dispatch('check_status');
}
public function check_status()
{
$this->dispatch('check_status');

View File

@@ -1,4 +1,4 @@
<div x-data="{ activeTab: window.location.hash ? window.location.hash.substring(1) : 'service-stack' }" x-init="$wire.check_status" wire:poll.5000ms="check_status">
<div x-data="{ activeTab: window.location.hash ? window.location.hash.substring(1) : 'service-stack' }" x-init="$wire.check_status">
<x-slot:title>
{{ data_get_str($service, 'name')->limit(10) }} > Configuration | Coolify
</x-slot>

View File

@@ -1,4 +1,4 @@
<div wire:poll.10000ms="check_status">
<div wire:poll.10000ms="check_status_without_notification">
<livewire:project.shared.configuration-checker :resource="$service" />
<x-slide-over @startservice.window="slideOverOpen = true" closeWithX fullScreen>
<x-slot:title>Service Startup</x-slot:title>