File tree 2 files changed +5
-2
lines changed
web-app/src/containers/Tutorial
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ interface Props {
24
24
current : number // level index
25
25
max : number // level count
26
26
defaultOpen : boolean
27
+ disabled ?: boolean
27
28
onContinue ( ) : void
28
29
}
29
30
@@ -48,12 +49,12 @@ const Continue = (props: Props) => {
48
49
return (
49
50
< >
50
51
{ modalState === 'init' ? (
51
- < Button type = "primary" size = "medium" onClick = { onOpen } >
52
+ < Button type = "primary" size = "medium" onClick = { onOpen } disabled = { props . disabled } >
52
53
Continue
53
54
</ Button >
54
55
) : null }
55
56
{ modalState === 'closed' ? (
56
- < Button type = "primary" size = "medium" onClick = { onContinue } >
57
+ < Button type = "primary" size = "medium" onClick = { onContinue } disabled = { props . disabled } >
57
58
Continue
58
59
</ Button >
59
60
) : null }
Original file line number Diff line number Diff line change @@ -208,6 +208,7 @@ const TutorialPage = (props: PageProps) => {
208
208
max = { levels . length }
209
209
title = { tutorial . summary . title }
210
210
defaultOpen = { false }
211
+ disabled = { processes . length > 0 }
211
212
/>
212
213
</ div >
213
214
) : props . state === 'Level.LevelComplete' ? (
@@ -218,6 +219,7 @@ const TutorialPage = (props: PageProps) => {
218
219
max = { levels . length }
219
220
title = { tutorial . summary . title }
220
221
defaultOpen = { true }
222
+ disabled = { processes . length > 0 }
221
223
/>
222
224
</ div >
223
225
) : level . steps . length > 1 ? (
You can’t perform that action at this time.
0 commit comments