diff --git a/frontend/src/routes/jobs/NewJob.tsx b/frontend/src/routes/jobs/NewJob.tsx index 9ce0462..53d86ce 100644 --- a/frontend/src/routes/jobs/NewJob.tsx +++ b/frontend/src/routes/jobs/NewJob.tsx @@ -126,6 +126,15 @@ export function NewJob() { return; } + if (!selectedClientId) { + toast.toastOnly.error('Please select a client'); + return; + } + if (!selectedProjectId) { + toast.toastOnly.error('Please select a project'); + return; + } + const jobData: JobCreateRequest = { title: data.title, requested_outputs: { @@ -208,6 +217,15 @@ export function NewJob() { return; } + if (!selectedClientId) { + toast.toastOnly.error('Please select a client'); + return; + } + if (!selectedProjectId) { + toast.toastOnly.error('Please select a project'); + return; + } + await multiUpload.startUpload({ requestedOutputs: { captions_vtt: data.captions_vtt, @@ -699,40 +717,38 @@ export function NewJob() { )} {/* Project */} - {clients.length > 0 && ( -
+
+
+ + +
+ {selectedClientId && (
- {selectedClientId && ( -
- - -
- )} -
- )} + )} +
{/* Brand Context */}