This commit is contained in:
parent
0f5d9b9b68
commit
8c9b6ec07e
|
|
@ -369,7 +369,8 @@ export default function SetupPage() {
|
|||
stepTitle={t("setup.SetupComplete")}
|
||||
onShouldProceed={handleShouldProceed}
|
||||
//showNextButton={true}
|
||||
showNextButton={!isSubmitting} // 禁用按钮
|
||||
showNextButton={true} // 一直显示按钮
|
||||
isSubmitting={isSubmitting} // 控制是否禁用
|
||||
showBackButton={true}
|
||||
>
|
||||
<FinishStep displayName={displayName} />
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@ interface StepContainerProps {
|
|||
children?: React.ReactNode
|
||||
showBackButton?: boolean
|
||||
showNextButton?: boolean
|
||||
isSubmitting?: boolean // ✅ 新增这个
|
||||
}
|
||||
|
||||
export const StepContainer: FC<StepContainerProps> = ({
|
||||
|
|
@ -80,7 +81,7 @@ export const StepContainer: FC<StepContainerProps> = ({
|
|||
ref={buttonRef}
|
||||
size="sm"
|
||||
onClick={() => onShouldProceed(true)}
|
||||
disabled={!showNextButton}
|
||||
disabled={isSubmitting}
|
||||
>
|
||||
{t("setup.next")}
|
||||
</Button>
|
||||
|
|
|
|||
Loading…
Reference in New Issue