mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-20 21:41:57 +00:00
fix: disable uniformity form uploading uniformity file
This commit is contained in:
@@ -597,6 +597,7 @@ const UniformityForm = ({
|
||||
onBlur={formik.handleBlur}
|
||||
isError={formik.touched.date && Boolean(formik.errors.date)}
|
||||
errorMessage={formik.errors.date as string}
|
||||
disabled={isNextStep}
|
||||
/>
|
||||
|
||||
<SelectInput
|
||||
@@ -615,6 +616,7 @@ const UniformityForm = ({
|
||||
errorMessage={formik.errors.location_id as string}
|
||||
isClearable
|
||||
className={{ wrapper: 'w-full' }}
|
||||
isDisabled={isNextStep}
|
||||
/>
|
||||
|
||||
<SelectInput
|
||||
@@ -627,7 +629,7 @@ const UniformityForm = ({
|
||||
onInputChange={setProjectFlockSearchValue}
|
||||
isLoading={isLoadingProjectFlocks}
|
||||
onMenuScrollToBottom={loadMoreProjectFlocks}
|
||||
isDisabled={!formik.values.location_id}
|
||||
isDisabled={!formik.values.location_id || isNextStep}
|
||||
isError={
|
||||
formik.touched.project_flock_id &&
|
||||
Boolean(formik.errors.project_flock_id)
|
||||
@@ -644,7 +646,7 @@ const UniformityForm = ({
|
||||
value={formik.values.kandang}
|
||||
onChange={handleKandangChange}
|
||||
options={kandangOptions}
|
||||
isDisabled={!formik.values.project_flock_id}
|
||||
isDisabled={!formik.values.project_flock_id || isNextStep}
|
||||
isError={
|
||||
formik.touched.kandang_id && Boolean(formik.errors.kandang_id)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user