Skip to content

Commit 237d4b4

Browse files
authored
Fix "Step 1" click not resetting the stepper appropriately (#2597)
1 parent 3b0634f commit 237d4b4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

frontend/src/components/Mining/StepperPanels/StepWithPopover.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ const { stepNumber, isActive, title } = defineProps<{
3535
3636
const titlePopover = ref();
3737
const $leadminerStore = useLeadminerStore();
38+
const $sourcePanelStore = useStepperSourcePanel();
3839
3940
const isAbleToSwitchStep = computed(
4041
() =>
@@ -45,10 +46,9 @@ const isAbleToSwitchStep = computed(
4546
const toggle = (event: MouseEvent) => {
4647
titlePopover.value.toggle(event);
4748
setTimeout(() => titlePopover.value.hide(), 5000);
49+
if (stepNumber === 1) $sourcePanelStore.hideOtherSources();
4850
49-
if (isAbleToSwitchStep.value) {
50-
$stepper.go(stepNumber);
51-
}
51+
if (isAbleToSwitchStep.value) $stepper.go(stepNumber);
5252
};
5353
</script>
5454

0 commit comments

Comments
 (0)