File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff 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" />
You can’t perform that action at this time.
0 commit comments