Disable book while robot loading

This commit is contained in:
Reckless_Satoshi 2022-01-30 12:24:14 -08:00
parent dff011358c
commit 611d0f399a
No known key found for this signature in database
GPG Key ID: 9C4585B561315571
2 changed files with 2 additions and 2 deletions

View File

@ -469,7 +469,7 @@ bottomBarPhone =()=>{
<Grid item xs={1.6}>
<IconButton onClick={this.handleClickOpenProfile} sx={{margin: 0, top: -13, }} >
<Badge badgeContent={(this.state.active_order_id >0 & !this.state.profileShown) ? "1": null} color="primary">
<Badge badgeContent={(this.state.active_order_id >0 & !this.state.profileShown) ? "": null} color="primary">
<Avatar className='flippedSmallAvatar'
alt={this.props.nickname}
src={this.props.nickname ? window.location.origin +'/static/assets/avatars/' + this.props.nickname + '.png' : null}

View File

@ -202,7 +202,7 @@ export default class UserGenPage extends Component {
<Button disabled={this.state.loadingRobot} color='primary' to='/make/' component={Link}>Make Order</Button>
<Button color='inherit' onClick={this.handleClickOpenInfo}>Info</Button>
<this.InfoDialog/>
<Button color='secondary' to='/book/' component={Link}>View Book</Button>
<Button disabled={this.state.loadingRobot} color='secondary' to='/book/' component={Link}>View Book</Button>
</ButtonGroup>
</Grid>
<Grid item xs={12} align="center">