mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-21 21:22:11 -03:00
feat: Implement recipe repair cancellation with UI support and refactor LoadingManager to a singleton.
This commit is contained in:
@@ -4,6 +4,10 @@ import { formatFileSize } from '../utils/formatters.js';
|
||||
// Loading management
|
||||
export class LoadingManager {
|
||||
constructor() {
|
||||
if (LoadingManager.instance) {
|
||||
return LoadingManager.instance;
|
||||
}
|
||||
|
||||
this.overlay = document.getElementById('loading-overlay');
|
||||
|
||||
if (!this.overlay) {
|
||||
@@ -59,6 +63,8 @@ export class LoadingManager {
|
||||
};
|
||||
|
||||
this.detailsContainer = null; // Will be created when needed
|
||||
|
||||
LoadingManager.instance = this;
|
||||
}
|
||||
|
||||
show(message = 'Loading...', progress = 0) {
|
||||
|
||||
Reference in New Issue
Block a user