Show opened workflows as topbar tabs (#952)

* Basic tab switching

* Closing tabs

* Style buttons

* wip

* Fix scroll style

* Add setting

* Add playwright test

* Add unsaved status

* nit
This commit is contained in:
Chenlei Hu
2024-09-24 15:29:46 +09:00
parent 7b344d5629
commit 6a8287e192
8 changed files with 187 additions and 5 deletions

View File

@@ -135,6 +135,11 @@ const init = () => {
id: 'workflows',
icon: 'pi pi-folder-open',
iconBadge: () => {
if (
settingStore.get('Comfy.Workflow.WorkflowTabsPosition') !== 'Sidebar'
) {
return null
}
const value = useWorkflowStore().openWorkflows.length.toString()
return value === '0' ? null : value
},