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:
2025-12-02 16:18:56 -05:00
parent 7182eba9ed
commit 9c8884b6a6

View File

@@ -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',