fix: check dsl version when create app from explore template (#18872)

This commit is contained in:
zxhlyh
2025-04-27 14:00:45 +08:00
committed by GitHub
parent 58a929edd5
commit 19f2a74ba8
4 changed files with 260 additions and 38 deletions

View File

@@ -35,6 +35,7 @@ export type CreateAppModalProps = {
description: string
use_icon_as_answer_icon?: boolean
}) => Promise<void>
confirmDisabled?: boolean
onHide: () => void
}
@@ -50,6 +51,7 @@ const CreateAppModal = ({
appMode,
appUseIconAsAnswerIcon,
onConfirm,
confirmDisabled,
onHide,
}: CreateAppModalProps) => {
const { t } = useTranslation()
@@ -160,7 +162,7 @@ const CreateAppModal = ({
</div>
<div className='flex flex-row-reverse'>
<Button
disabled={(!isEditModal && isAppsFull) || !name.trim()}
disabled={(!isEditModal && isAppsFull) || !name.trim() || confirmDisabled}
className='ml-2 w-24 gap-1'
variant='primary'
onClick={handleSubmit}