Enhance layout and components with improved accessibility and performance
- Refactor JavaScript functions to prevent duplicate initializations on navigation - Add skeleton loaders for invoices and services during loading states - Introduce a new progress bar component with customizable properties - Update dropdown and checkbox components for better styling and accessibility - Improve modal and navigation components with enhanced animations and structure
This commit is contained in:
@@ -1024,13 +1024,17 @@
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<script>
|
||||
document.addEventListener('livewire:initialized', () => {
|
||||
Livewire.on('refresh-page', () => {
|
||||
setTimeout(() => {
|
||||
window.location.reload();
|
||||
}, 500);
|
||||
<script data-navigate-track>
|
||||
// Use event delegation to avoid duplicate listeners
|
||||
if (!window.__storageRefreshListenerAdded) {
|
||||
window.__storageRefreshListenerAdded = true;
|
||||
document.addEventListener('livewire:initialized', () => {
|
||||
Livewire.on('refresh-page', () => {
|
||||
setTimeout(() => {
|
||||
window.location.reload();
|
||||
}, 500);
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
||||
</script>
|
||||
</x-proxmox::layout>
|
||||
|
||||
Reference in New Issue
Block a user