Skip to content

Commit 0e7d930

Browse files
committed
wip
1 parent eed7e01 commit 0e7d930

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

hwproj.front/src/components/Common/GroupSelector.tsx

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ import {
66
Button,
77
Stack,
88
CircularProgress,
9-
Chip
9+
Chip,
10+
Alert,
11+
AlertTitle
1012
} from "@mui/material";
1113
import ApiSingleton from "../../api/ApiSingleton";
1214
import {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

hwproj.front/src/components/Homeworks/CourseHomeworkExperimental.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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}

0 commit comments

Comments
 (0)