File tree Expand file tree Collapse file tree
hwproj.front/src/components Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66 Button ,
77 Stack ,
88 CircularProgress ,
9- Chip
9+ Chip ,
10+ Alert ,
11+ AlertTitle
1012} from "@mui/material" ;
1113import ApiSingleton from "../../api/ApiSingleton" ;
1214import { GroupViewModel , AccountDataDto } from "@/api" ;
@@ -180,6 +182,14 @@ const GroupSelector: FC<GroupSelectorProps> = (props) => {
180182 </ Button >
181183 </ Stack >
182184 </ Grid > }
185+ { props . selectedGroupId == undefined && < Grid item xs = { 12 } >
186+ < Alert severity = "info" variant = { "outlined" } >
187+ < AlertTitle > Создайте или выберите группу</ AlertTitle >
188+ • Задание будет доступно только студентам из группы
189+ < br />
190+ • Вы можете изменить состав группы в любое время
191+ </ Alert >
192+ </ Grid > }
183193 </ Grid > )
184194}
185195
Original file line number Diff line number Diff line change @@ -417,7 +417,7 @@ const CourseHomeworkEditor: FC<{
417417 confirmationText = { '' }
418418 />
419419 </ CardContent > }
420- { page === "group" && < CardContent style = { { minHeight : 500 , width : '100%' } } >
420+ { page === "group" && < CardContent style = { { minHeight : 300 , width : '100%' } } >
421421 < GroupSelector
422422 courseId = { courseId }
423423 courseStudents = { courseStudents }
You can’t perform that action at this time.
0 commit comments