fix: Support passing the default app mode when creating an app (#25142)
Co-authored-by: 王博 <wangbo@localhost.com>
This commit is contained in:
parent
33afa7c84a
commit
8ffb9b6aed
3 changed files with 16 additions and 7 deletions
|
|
@ -26,12 +26,14 @@ export type CreateAppCardProps = {
|
|||
className?: string
|
||||
onSuccess?: () => void
|
||||
ref: React.RefObject<HTMLDivElement | null>
|
||||
selectedAppType?: string
|
||||
}
|
||||
|
||||
const CreateAppCard = ({
|
||||
ref,
|
||||
className,
|
||||
onSuccess,
|
||||
selectedAppType,
|
||||
}: CreateAppCardProps) => {
|
||||
const { t } = useTranslation()
|
||||
const { onPlanInfoChanged } = useProviderContext()
|
||||
|
|
@ -86,6 +88,7 @@ const CreateAppCard = ({
|
|||
setShowNewAppTemplateDialog(true)
|
||||
setShowNewAppModal(false)
|
||||
}}
|
||||
defaultAppMode={selectedAppType !== 'all' ? selectedAppType as any : undefined}
|
||||
/>
|
||||
)}
|
||||
{showNewAppTemplateDialog && (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue