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
|
@endif
|
||||||
|
|
||||||
@if(count($firewallLogs) > 0)
|
@if(count($firewallLogs) > 0)
|
||||||
|
@once
|
||||||
|
<script>
|
||||||
|
window.firewallLogsData = @js($firewallLogs);
|
||||||
|
</script>
|
||||||
|
@endonce
|
||||||
<div
|
<div
|
||||||
wire:ignore
|
|
||||||
x-data="{
|
x-data="{
|
||||||
logs: @js($firewallLogs),
|
logs: window.firewallLogsData || [],
|
||||||
searchTerm: '',
|
searchTerm: '',
|
||||||
sortField: 'timestamp_iso',
|
sortField: 'timestamp_iso',
|
||||||
sortDirection: 'desc',
|
sortDirection: 'desc',
|
||||||
|
|||||||
Reference in New Issue
Block a user