mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-21 21:22:11 -03:00
feat: enhance model version download with progress tracking
- Set refresh to true when fetching model update versions to ensure latest data - Refactor handleDownloadVersion to be async and accept button parameter - Add progress tracking and WebSocket integration for download operations - Implement button state management during download process - Add error handling and cleanup for download operations - Update download action to await async download handler
This commit is contained in:
@@ -38,6 +38,7 @@ export class LoadingManager {
|
||||
this.setProgress(0);
|
||||
this.setStatus('');
|
||||
this.removeDetailsContainer();
|
||||
this.progressBar.style.display = 'block';
|
||||
}
|
||||
|
||||
// Create a details container for enhanced progress display
|
||||
@@ -69,6 +70,7 @@ export class LoadingManager {
|
||||
// Show enhanced progress for downloads
|
||||
showDownloadProgress(totalItems = 1) {
|
||||
this.show(translate('modals.download.status.preparing', {}, 'Preparing download...'), 0);
|
||||
this.progressBar.style.display = 'none';
|
||||
|
||||
// Create details container
|
||||
const detailsContainer = this.createDetailsContainer();
|
||||
|
||||
Reference in New Issue
Block a user