Add generation progress to browser tab title (#855)

This commit is contained in:
Chenlei Hu
2024-09-17 10:31:29 +09:00
committed by GitHub
parent c510b344af
commit 3fe4b4b856
4 changed files with 31 additions and 0 deletions

View File

@@ -19,6 +19,8 @@ export const useExecutionStore = defineStore('execution', () => {
return Object.values(activePrompt.value.nodes).length
})
const isIdle = computed(() => !activePromptId.value)
const nodesExecuted = computed(() => {
if (!activePrompt.value) return 0
return Object.values(activePrompt.value.nodes).filter(Boolean).length
@@ -102,6 +104,7 @@ export const useExecutionStore = defineStore('execution', () => {
}
return {
isIdle,
activePromptId,
queuedPrompts,
executingNodeId,