mirror of
https://github.com/SlimeVR/SlimeVR-Server.git
synced 2026-04-06 02:01:58 +02:00
Don't always advance to next Stay Aligned setup step on reset
This commit is contained in:
@@ -11,6 +11,7 @@ import { ResetType } from 'solarxr-protocol';
|
||||
export function PreparationStep({
|
||||
nextStep,
|
||||
prevStep,
|
||||
isActive,
|
||||
}: VerticalStepComponentProps) {
|
||||
return (
|
||||
<div className="flex flex-col flex-grow justify-between py-2 gap-2">
|
||||
@@ -53,7 +54,14 @@ export function PreparationStep({
|
||||
<Button variant={'secondary'} onClick={prevStep} />
|
||||
</Localized>
|
||||
|
||||
<ResetButton type={ResetType.Full} onReseted={nextStep} />
|
||||
<ResetButton
|
||||
type={ResetType.Full}
|
||||
onReseted={() => {
|
||||
if (isActive) {
|
||||
nextStep();
|
||||
}
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
||||
@@ -10,6 +10,7 @@ import { ManualMountingPageStayAligned } from '@/components/onboarding/pages/mou
|
||||
export function VerifyMountingStep({
|
||||
nextStep,
|
||||
prevStep,
|
||||
isActive,
|
||||
}: VerticalStepComponentProps) {
|
||||
const { isMobile } = useBreakpoint('mobile');
|
||||
const [isOpen, setOpen] = useState(false);
|
||||
@@ -79,7 +80,11 @@ export function VerifyMountingStep({
|
||||
onClick={() => setDisableMounting(true)}
|
||||
type={ResetType.Mounting}
|
||||
group="default"
|
||||
onReseted={goNextStep}
|
||||
onReseted={() => {
|
||||
if (isActive) {
|
||||
nextStep();
|
||||
}
|
||||
}}
|
||||
onFailed={() => setDisableMounting(false)}
|
||||
/>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user