div, promise timeout
This commit is contained in:
parent
fb5f71a881
commit
0995bd916a
|
@ -129,7 +129,7 @@ class ClientShifts extends Component {
|
|||
this.props.dispatch(deleteCShiftRequest(uuid));
|
||||
};
|
||||
|
||||
approveHoursCShift = cshift => {
|
||||
approveHoursCShift = async cshift => {
|
||||
const {
|
||||
set_start: approved_start,
|
||||
set_end: approved_end,
|
||||
|
@ -145,6 +145,7 @@ class ClientShifts extends Component {
|
|||
set_end: null
|
||||
})
|
||||
);
|
||||
await new Promise(resolve => setTimeout(resolve, 500));
|
||||
this.props.dispatch(
|
||||
getCShiftsRequest({
|
||||
page: this.props.page,
|
||||
|
|
|
@ -172,6 +172,7 @@ const ProviderShiftFormView = ({
|
|||
</Message>
|
||||
)}
|
||||
{!checkedIn && (
|
||||
<div>
|
||||
<Button.Group>
|
||||
{!approved && (
|
||||
<Button
|
||||
|
@ -190,6 +191,7 @@ const ProviderShiftFormView = ({
|
|||
</Button>
|
||||
)}
|
||||
</Button.Group>
|
||||
</div>
|
||||
)}
|
||||
{shift.approved_start && (
|
||||
<Fragment>
|
||||
|
|
Loading…
Reference in New Issue
Block a user