2
0

feat(editor): 🔒️ Add verification on backend for file input deployment

This commit is contained in:
Baptiste Arnaud
2022-06-13 08:21:48 +02:00
parent 910b871556
commit 14afd2249e
7 changed files with 112 additions and 17 deletions

View File

@ -34,6 +34,7 @@ export const PublishButton = () => {
publishedTypebot,
restorePublishedTypebot,
typebot,
isSavingLoading,
} = useTypebot()
const hasInputFile = typebot?.groups
@ -73,7 +74,7 @@ export const PublishButton = () => {
>
<Button
colorScheme="blue"
isLoading={isPublishing}
isLoading={isPublishing || isSavingLoading}
isDisabled={isPublished}
onClick={handlePublishClick}
borderRightRadius={publishedTypebot && !isPublished ? 0 : undefined}