refactor: enhance log handling in Proxmox Firewall view by initializing logs with a JavaScript variable, improving data management and ensuring consistent log access
This commit is contained in:
@@ -315,10 +315,14 @@
|
||||
@endif
|
||||
|
||||
@if(count($firewallLogs) > 0)
|
||||
@once
|
||||
<script>
|
||||
window.firewallLogsData = @js($firewallLogs);
|
||||
</script>
|
||||
@endonce
|
||||
<div
|
||||
wire:ignore
|
||||
x-data="{
|
||||
logs: @js($firewallLogs),
|
||||
logs: window.firewallLogsData || [],
|
||||
searchTerm: '',
|
||||
sortField: 'timestamp_iso',
|
||||
sortDirection: 'desc',
|
||||
|
||||
Reference in New Issue
Block a user