Add test coverage for schedule execution

This commit is contained in:
Dane Everitt 2020-10-14 21:06:27 -07:00
parent c1ee0ac4f8
commit e7c64bc60e
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
4 changed files with 106 additions and 5 deletions

View file

@ -146,7 +146,7 @@ export default ({ match, history, location: { state } }: RouteComponentProps<Par
onDeleted={() => history.push(`/server/${id}/schedules`)}
/>
</Can>
{schedule.isActive &&
{schedule.isActive && schedule.tasks.length > 0 &&
<Can action={'schedule.update'}>
<RunScheduleButton schedule={schedule}/>
</Can>