File tree Expand file tree Collapse file tree
hwproj.front/src/components/Common Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments