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
|
||||
|
||||
@if(count($firewallLogs) > 0)
|
||||
<script>
|
||||
if (!window.firewallLogsStatic) {
|
||||
window.firewallLogsStatic = @js($firewallLogs);
|
||||
}
|
||||
</script>
|
||||
<div
|
||||
wire:key="firewall-logs-static-{{ md5(serialize($firewallLogs)) }}"
|
||||
x-data="{
|
||||
logs: window.firewallLogsStatic || [],
|
||||
logs: @js($firewallLogs),
|
||||
searchTerm: '',
|
||||
sortField: 'timestamp_iso',
|
||||
sortDirection: 'desc',
|
||||
|
||||
Reference in New Issue
Block a user