mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-24 06:32:12 -03:00
refactor: enhance bulk metadata refresh functionality and update UI components
This commit is contained in:
@@ -145,6 +145,28 @@ export class LoadingManager {
|
||||
}
|
||||
}
|
||||
|
||||
// Enhanced progress display without callback pattern
|
||||
showEnhancedProgress(message = 'Processing...') {
|
||||
this.show(message, 0);
|
||||
|
||||
// Return update functions
|
||||
return {
|
||||
updateProgress: (percent, currentItem = '', statusMessage = '') => {
|
||||
this.setProgress(percent);
|
||||
if (statusMessage) {
|
||||
this.setStatus(statusMessage);
|
||||
}
|
||||
},
|
||||
|
||||
complete: async (completionMessage = 'Complete') => {
|
||||
this.setProgress(100);
|
||||
this.setStatus(completionMessage);
|
||||
await new Promise(resolve => setTimeout(resolve, 500));
|
||||
this.hide();
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
showSimpleLoading(message = 'Loading...') {
|
||||
this.overlay.style.display = 'flex';
|
||||
this.progressBar.style.display = 'none';
|
||||
@@ -154,4 +176,4 @@ export class LoadingManager {
|
||||
restoreProgressBar() {
|
||||
this.progressBar.style.display = 'block';
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user