File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -252,6 +252,7 @@ class HostKeyHash extends Component {
252252 pattern ,
253253 err
254254 ) ;
255+ this . setState ( { loading : false } ) ;
255256 return ;
256257 }
257258 let data = [ ] ;
@@ -452,11 +453,12 @@ class HostKeyHash extends Component {
452453 < Search
453454 style = { { width : 300 } }
454455 prefix = "key :"
455- enterButton = { < Button > search </ Button > }
456+ enterButton = "Search"
456457 size = "middle"
457458 value = { this . state . search . field }
458459 onChange = { this . onChangeSearch . bind ( this ) }
459460 onSearch = { this . searchField . bind ( this ) }
461+ loading = { this . state . loading }
460462 />
461463 </ Tooltip >
462464 < Button
Original file line number Diff line number Diff line change @@ -252,6 +252,7 @@ class HostKeySet extends Component {
252252 } catch ( err ) {
253253 message . error ( "" + err ) ;
254254 Log . error ( "HostKeySet searchSortSetByPatternRecursive error" , err ) ;
255+ this . setState ( { loading : false } ) ;
255256 }
256257 }
257258 /**
@@ -411,11 +412,12 @@ class HostKeySet extends Component {
411412 defaultValue = "*"
412413 style = { { width : 300 } }
413414 prefix = "key :"
414- enterButton = { < Button > search </ Button > }
415+ enterButton = "Search"
415416 size = "middle"
416417 value = { this . state . search . searchMember }
417418 onChange = { this . onChangeSearchMember . bind ( this ) }
418419 onSearch = { this . searchSet . bind ( this ) }
420+ loading = { this . state . loading }
419421 />
420422 </ Tooltip >
421423 < Button
Original file line number Diff line number Diff line change @@ -197,6 +197,7 @@ class HostKeySortSet extends Component {
197197 ( err ) => {
198198 message . error ( "" + err ) ;
199199 Log . error ( "HostKeySortSet fetchDataByPage error" , err ) ;
200+ this . setState ( { loading : false } ) ;
200201 }
201202 ) ;
202203 }
@@ -504,11 +505,12 @@ class HostKeySortSet extends Component {
504505 < Search
505506 style = { { width : 300 } }
506507 prefix = "key :"
507- enterButton = { < Button > search </ Button > }
508+ enterButton = "Search"
508509 size = "middle"
509510 value = { this . state . search . searchMember }
510511 onChange = { this . onChangeSearchMember . bind ( this ) }
511512 onSearch = { this . searchSortSet . bind ( this ) }
513+ loading = { this . state . loading }
512514 />
513515 </ Tooltip >
514516 < Button
You can’t perform that action at this time.
0 commit comments