feat: Implement collection deletion and loading spinners
- Add API endpoint and handler to delete collections - Introduce LoadingSpinner component for async operations - Show loading spinners during file loading and preview rendering - Enhance modal accessibility by removing aria-hidden attribute - Refactor delete functionality to distinguish between collections and files/folders - Remove unused collection definitions from config
This commit is contained in:
		| @@ -70,12 +70,13 @@ class ModalManager { | ||||
|                 } | ||||
|             }, { once: true }); | ||||
|  | ||||
|             // Remove aria-hidden before showing to prevent accessibility warning | ||||
|             this.modalElement.removeAttribute('aria-hidden'); | ||||
|  | ||||
|             this.modal.show(); | ||||
|  | ||||
|             // Focus confirm button after modal is shown | ||||
|             this.modalElement.addEventListener('shown.bs.modal', () => { | ||||
|                 // Ensure aria-hidden is removed (Bootstrap should do this, but be explicit) | ||||
|                 this.modalElement.removeAttribute('aria-hidden'); | ||||
|                 this.confirmButton.focus(); | ||||
|             }, { once: true }); | ||||
|         }); | ||||
| @@ -130,12 +131,13 @@ class ModalManager { | ||||
|                 } | ||||
|             }, { once: true }); | ||||
|  | ||||
|             // Remove aria-hidden before showing to prevent accessibility warning | ||||
|             this.modalElement.removeAttribute('aria-hidden'); | ||||
|  | ||||
|             this.modal.show(); | ||||
|  | ||||
|             // Focus and select input after modal is shown | ||||
|             this.modalElement.addEventListener('shown.bs.modal', () => { | ||||
|                 // Ensure aria-hidden is removed (Bootstrap should do this, but be explicit) | ||||
|                 this.modalElement.removeAttribute('aria-hidden'); | ||||
|                 this.inputElement.focus(); | ||||
|                 this.inputElement.select(); | ||||
|             }, { once: true }); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user