From 1db9a27ed65aa6d8dcf3e3ae0398c25a2dfab00f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Opi=C5=82owski?= Date: Sun, 12 Jun 2022 16:24:34 +0200 Subject: [PATCH] Restrict TutorPicker to one tutor Issue #123 --- alt-api-ui/src/schedule-viewer/pickers/UniversalPicker.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alt-api-ui/src/schedule-viewer/pickers/UniversalPicker.tsx b/alt-api-ui/src/schedule-viewer/pickers/UniversalPicker.tsx index 1a5d249..2bc504f 100644 --- a/alt-api-ui/src/schedule-viewer/pickers/UniversalPicker.tsx +++ b/alt-api-ui/src/schedule-viewer/pickers/UniversalPicker.tsx @@ -92,7 +92,7 @@ export default function UniversalPicker(props: UniversalPickerProps) { auto id={'addTutorButton'} icon={} - disabled={!formik.isValid} + disabled={!formik.isValid || (props.values.length > 0 && props.operationMode == ModeChoice.TUTOR)} onClick={() => formik.handleSubmit()} > Dodaj