File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ export interface IDriveInputProps {
29
29
isPublic : boolean ;
30
30
setIsPublic : ( value : boolean ) => void ;
31
31
mountError : string ;
32
+ resetMountError : ( ) => void ;
32
33
}
33
34
34
35
export function DriveInputComponent ( {
@@ -39,7 +40,8 @@ export function DriveInputComponent({
39
40
onSubmit,
40
41
isPublic,
41
42
setIsPublic,
42
- mountError
43
+ mountError,
44
+ resetMountError
43
45
} : IDriveInputProps ) {
44
46
return (
45
47
< div >
@@ -48,6 +50,7 @@ export function DriveInputComponent({
48
50
className = "drive-search-input"
49
51
onInput = { ( event : any ) => {
50
52
setPublicDrive ( event . target . value ) ;
53
+ resetMountError ( ) ;
51
54
} }
52
55
placeholder = "Enter drive name"
53
56
value = { driveValue }
@@ -72,6 +75,7 @@ export function DriveInputComponent({
72
75
className = "drive-region-input"
73
76
onInput = { ( event : any ) => {
74
77
setRegion ( event . target . value ) ;
78
+ resetMountError ( ) ;
75
79
} }
76
80
placeholder = "Region (e.g.: us-east-1)"
77
81
value = { regionValue }
@@ -259,6 +263,7 @@ export function DriveListManagerComponent({ model }: IProps) {
259
263
setIsPublic = { setIsPublic }
260
264
onSubmit = { onAddedPublicDrive }
261
265
mountError = { mountError }
266
+ resetMountError = { ( ) => setMountError ( '' ) }
262
267
/>
263
268
</ div >
264
269
You can’t perform that action at this time.
0 commit comments