mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-18 16:13:49 +00:00
fix: realtime check
This commit is contained in:
1 parent
e022492770
commit
af6d94c0d8
2 files changed
+22
-10
No files matched your search
@@ -8,6 +8,7 @@ class RealtimeConnection extends Component
|
||||
{
|
||||
public $checkConnection = false;
|
||||
public $showNotification = false;
|
||||
public $isNotificationEnabled = true;
|
||||
public function render()
|
||||
{
|
||||
return view('livewire.realtime-connection');
|
||||
@@ -18,8 +19,7 @@ class RealtimeConnection extends Component
|
||||
$this->showNotification = false;
|
||||
}
|
||||
public function mount() {
|
||||
$isRoot = auth()->user()->id === 0;
|
||||
$showNotification = data_get(auth()->user(), 'is_notification_realtime_enabled');
|
||||
$this->checkConnection = $isRoot && $showNotification;
|
||||
$this->isNotificationEnabled = auth()->user()->is_notification_realtime_enabled;
|
||||
$this->checkConnection = auth()->user()->id === 0;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user