refactor: enhance log handling in Proxmox Firewall view by directly assigning logs to a reactive variable, improving data management and ensuring accurate log updates
This commit is contained in:
@@ -321,14 +321,10 @@
|
|||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if(count($firewallLogs) > 0)
|
@if(count($firewallLogs) > 0)
|
||||||
<script>
|
|
||||||
if (!window.firewallLogsStatic) {
|
|
||||||
window.firewallLogsStatic = @js($firewallLogs);
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
<div
|
<div
|
||||||
|
wire:key="firewall-logs-static-{{ md5(serialize($firewallLogs)) }}"
|
||||||
x-data="{
|
x-data="{
|
||||||
logs: window.firewallLogsStatic || [],
|
logs: @js($firewallLogs),
|
||||||
searchTerm: '',
|
searchTerm: '',
|
||||||
sortField: 'timestamp_iso',
|
sortField: 'timestamp_iso',
|
||||||
sortDirection: 'desc',
|
sortDirection: 'desc',
|
||||||
|
|||||||
Reference in New Issue
Block a user