Skip to content

Commit b1f80b0

Browse files
Logical rather than hacky timing
1 parent 1240503 commit b1f80b0

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

src/pages/DataSamplesPage.tsx

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,12 @@ const DataSamplesPage = () => {
7070
});
7171
const hasMoved = useHasMoved();
7272
const tourInProgress = useStore((s) => !!s.tourState);
73+
const isRecordingDialogOpen = useStore((s) => !!s.isRecordingDialogOpen);
7374
const isDialogOpen =
74-
welcomeDialogDisclosure.isOpen || isConnectionDialogOpen || tourInProgress;
75+
welcomeDialogDisclosure.isOpen ||
76+
isConnectionDialogOpen ||
77+
tourInProgress ||
78+
isRecordingDialogOpen;
7579
const hint: DataSamplesPageHint = isDialogOpen
7680
? null
7781
: activeHintForActions(actions, hasMoved, isConnected);
@@ -141,9 +145,10 @@ const DataSamplesPage = () => {
141145
className={tourElClassname.trainModelButton}
142146
onClick={() => trainModelFlowStart(handleNavigateToModel)}
143147
variant={hasSufficientData ? "primary" : "secondary-disabled"}
144-
// Delay due to Done dialog delay
145148
animation={
146-
hasSufficientData ? `${animations.tada} 1s` : undefined
149+
hasSufficientData && !isRecordingDialogOpen
150+
? animations.tada
151+
: undefined
147152
}
148153
>
149154
<FormattedMessage id="train-model" />

0 commit comments

Comments
 (0)