mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-03-13 17:10:06 +00:00
Add enterAppBuilder method for skipping arrange mode (#9310)
## Summary When already in app mode and entering builder with outputs defined, skip the select step and go straight to arrange ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-9310-Add-enterAppBuilder-method-for-skipping-arrange-mode-3156d73d36508101903ff434a2a1ac08) by [Unito](https://www.unito.io)
This commit is contained in:
@@ -7,7 +7,8 @@ import { storeToRefs } from 'pinia'
|
||||
|
||||
const { t } = useI18n()
|
||||
const { setMode } = useAppMode()
|
||||
const { hasOutputs } = storeToRefs(useAppModeStore())
|
||||
const appModeStore = useAppModeStore()
|
||||
const { hasOutputs } = storeToRefs(appModeStore)
|
||||
</script>
|
||||
|
||||
<template>
|
||||
@@ -44,7 +45,7 @@ const { hasOutputs } = storeToRefs(useAppModeStore())
|
||||
<Button variant="textonly" size="lg" @click="setMode('graph')">
|
||||
{{ t('linearMode.welcome.backToWorkflow') }}
|
||||
</Button>
|
||||
<Button variant="primary" size="lg" @click="setMode('builder:select')">
|
||||
<Button variant="primary" size="lg" @click="appModeStore.enterBuilder()">
|
||||
<i class="icon-[lucide--hammer]" />
|
||||
{{ t('linearMode.welcome.buildApp') }}
|
||||
<div
|
||||
|
||||
Reference in New Issue
Block a user