Queuing from mobile UI

This commit is contained in:
space-nuko
2023-04-28 16:50:16 -07:00
parent eec4fcaf2e
commit 234c280959
11 changed files with 553 additions and 57 deletions

View File

@@ -77,6 +77,14 @@ export default class ComfyApp {
shiftDown: boolean = false;
selectedGroupMoving: boolean = false;
private static _instance: ComfyApp;
static get instance(): ComfyApp {
if (!ComfyApp._instance)
ComfyApp._instance = new ComfyApp()
return ComfyApp._instance
}
private queueItems: QueueItem[] = [];
private processingQueue: boolean = false;
@@ -125,7 +133,7 @@ export default class ComfyApp {
}
// Save current workflow automatically
setInterval(this.requestAutosave.bind(this), 1000);
setInterval(this.requestAutosave.bind(this), 15000);
this.addApiUpdateHandlers();
this.addDropHandler();