Skip to content

Commit d7aea78

Browse files
committed
GroupSelector: информация о редакторировании после публикации
1 parent d6a099a commit d7aea78

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

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

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,14 +193,22 @@ const GroupSelector: FC<GroupSelectorProps> = (props) => {
193193
</Button>
194194
</Stack>
195195
</Grid>}
196-
{props.selectedGroupId == undefined && <Grid item xs={12}>
196+
{props.selectedGroupId == undefined && !props.choiceDisabled && <Grid item xs={12}>
197197
<Alert severity="info" variant={"outlined"}>
198198
<AlertTitle>Создайте или выберите группу</AlertTitle>
199199
• Задание будет доступно только студентам из группы
200200
<br/>
201201
• Вы можете изменить состав группы в любое время
202202
</Alert>
203203
</Grid>}
204+
{props.choiceDisabled && <Grid item xs={12}>
205+
<Alert severity="info" variant={"outlined"}>
206+
<AlertTitle>Изменение группы</AlertTitle>
207+
• Вы не можете изменить группу после публикации задания
208+
<br/>
209+
• Но можете изменить состав группы в любое время
210+
</Alert>
211+
</Grid>}
204212
</Grid>)
205213
}
206214

0 commit comments

Comments
 (0)