mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-20 13:32:00 +00:00
refactor(FE): Disable Submit button when duplicate error shown
This commit is contained in:
@@ -2990,7 +2990,11 @@ const RecordingForm = ({ type = 'add', initialValues }: RecordingFormProps) => {
|
||||
color='primary'
|
||||
className='px-4'
|
||||
isLoading={formik.isSubmitting}
|
||||
disabled={hasExceededStock || formik.isSubmitting}
|
||||
disabled={
|
||||
hasExceededStock ||
|
||||
formik.isSubmitting ||
|
||||
duplicateErrorShown
|
||||
}
|
||||
>
|
||||
Submit
|
||||
</Button>
|
||||
@@ -3015,7 +3019,11 @@ const RecordingForm = ({ type = 'add', initialValues }: RecordingFormProps) => {
|
||||
color='primary'
|
||||
className='px-4'
|
||||
isLoading={formik.isSubmitting}
|
||||
disabled={hasExceededStock || formik.isSubmitting}
|
||||
disabled={
|
||||
hasExceededStock ||
|
||||
formik.isSubmitting ||
|
||||
duplicateErrorShown
|
||||
}
|
||||
>
|
||||
Submit
|
||||
</Button>
|
||||
|
||||
Reference in New Issue
Block a user