Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions manager-dashboard/app/views/NewProject/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ const defaultProjectFormValue: PartialProjectFormType = {
// maxTasksPerUser: -1,
inputType: PROJECT_INPUT_TYPE_UPLOAD,
filter: FILTER_BUILDINGS,
randomizeOrder: false,
panoOnly: false,
};

Expand Down Expand Up @@ -763,6 +764,13 @@ function NewProject(props: Props) {
onChange={setFieldValue}
disabled={submissionPending || projectTypeEmpty}
/>
<Checkbox
name={'randomizeOrder' as const}
value={value?.randomizeOrder}
label="Randomize the order of images in the project."
onChange={setFieldValue}
disabled={submissionPending || projectTypeEmpty}
/>
</div>
</InputSection>
)}
Expand Down
4 changes: 4 additions & 0 deletions manager-dashboard/app/views/NewProject/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ export interface ProjectFormType {
endTimestamp?: string | null;
organizationId?: number;
creatorId?: number;
randomizeOrder?: boolean;
panoOnly?: boolean;
isPano?: boolean | null;
samplingThreshold?: number;
Expand Down Expand Up @@ -312,6 +313,9 @@ export const projectFormSchema: ProjectFormSchema = {
isPano: {
required: false,
},
randomizeOrder: {
required: false,
},
};

baseSchema = addCondition(
Expand Down