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