forked from 77media/video-flow
isShowError
This commit is contained in:
parent
53a187f7c4
commit
9a77f6a14d
@ -95,7 +95,8 @@ const WorkFlow = React.memo(function WorkFlow() {
|
|||||||
originalText,
|
originalText,
|
||||||
showGotoCutButton,
|
showGotoCutButton,
|
||||||
generateEditPlan,
|
generateEditPlan,
|
||||||
handleRetryVideo
|
handleRetryVideo,
|
||||||
|
isShowError
|
||||||
} = useWorkflowData({
|
} = useWorkflowData({
|
||||||
onEditPlanGenerated: handleEditPlanGenerated
|
onEditPlanGenerated: handleEditPlanGenerated
|
||||||
});
|
});
|
||||||
@ -260,7 +261,7 @@ const WorkFlow = React.memo(function WorkFlow() {
|
|||||||
|
|
||||||
{/* AI剪辑按钮 - 当可以跳转剪辑时显示 */}
|
{/* AI剪辑按钮 - 当可以跳转剪辑时显示 */}
|
||||||
{
|
{
|
||||||
showGotoCutButton && (
|
showGotoCutButton && !isShowError && (
|
||||||
<div className="fixed right-[2rem] top-[8rem] z-[49]">
|
<div className="fixed right-[2rem] top-[8rem] z-[49]">
|
||||||
<Tooltip title="AI智能剪辑" placement="left">
|
<Tooltip title="AI智能剪辑" placement="left">
|
||||||
<AIEditingIframeButton
|
<AIEditingIframeButton
|
||||||
|
|||||||
@ -751,6 +751,7 @@ export function useWorkflowData({ onEditPlanGenerated }: UseWorkflowDataProps =
|
|||||||
originalText: state.originalText,
|
originalText: state.originalText,
|
||||||
showGotoCutButton: (canGoToCut && (isGenerateEditPlan || taskObject.currentStage === 'final_video') || isShowError) ? true : false,
|
showGotoCutButton: (canGoToCut && (isGenerateEditPlan || taskObject.currentStage === 'final_video') || isShowError) ? true : false,
|
||||||
generateEditPlan: openEditPlan,
|
generateEditPlan: openEditPlan,
|
||||||
handleRetryVideo
|
handleRetryVideo,
|
||||||
|
isShowError
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user