Added a Sample Next Step in the job gear dropdown to force a sample on the next step.

This commit is contained in:
Jaret Burkett
2026-07-17 07:59:30 -06:00
parent 7a3d94ed03
commit 988d891102
5 changed files with 88 additions and 3 deletions

View File

@@ -66,6 +66,22 @@ export const saveJobNow = (jobID: string) => {
});
};
export const sampleJobNow = (jobID: string) => {
return new Promise<void>((resolve, reject) => {
apiClient
.get(`/api/jobs/${jobID}/sample_now`)
.then(res => res.data)
.then(data => {
console.log('Job set to sample on next step:', data);
resolve();
})
.catch(error => {
console.error('Error setting job to sample on next step:', error);
reject(error);
});
});
};
export const markJobAsStopped = (jobID: string) => {
return new Promise<void>((resolve, reject) => {
apiClient