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 @@ -126,7 +126,7 @@ const GroupSelector: FC<GroupSelectorProps> = (props) => {
126126 />
127127 </ Grid >
128128 { props . selectedGroupId && selectedGroup && < Grid item xs = { 12 } >
129- < Stack direction = { "column" } spacing = { 1 } >
129+ < Stack direction = { "column" } >
130130 < Autocomplete
131131 multiple
132132 fullWidth
@@ -175,10 +175,11 @@ const GroupSelector: FC<GroupSelectorProps> = (props) => {
175175 < Button
176176 onClick = { handleSubmitEdit }
177177 color = "primary"
178+ size = "small"
178179 variant = "outlined"
179180 disabled = { isSubmitting || ! formState . name . trim ( ) || formState . memberIds . length === 0 }
180181 >
181- { isSubmitting ? < CircularProgress size = { 24 } /> : selectedGroup ? "Сохранить" : "Создать "}
182+ { isSubmitting ? < CircularProgress size = { 24 } /> : "Сохранить группу " }
182183 </ Button >
183184 </ Stack >
184185 </ Grid > }
Original file line number Diff line number Diff line change @@ -427,6 +427,27 @@ const CourseHomeworkEditor: FC<{
427427 onGroupsUpdate = { props . onGroupsUpdate }
428428 groups = { props . groups }
429429 />
430+ { ! isNewHomework &&
431+ < CardActions >
432+ < LoadingButton
433+ fullWidth
434+ onClick = { handleSubmit }
435+ color = "primary"
436+ variant = "text"
437+ type = "submit"
438+ disabled = { isDisabled }
439+ loadingPosition = "end"
440+ size = { "large" }
441+ style = { {
442+ position : 'sticky' ,
443+ bottom : 0
444+ } }
445+ endIcon = { < span style = { { width : 17 } } /> }
446+ loading = { handleSubmitLoading }
447+ >
448+ { "Редактировать задание" }
449+ </ LoadingButton >
450+ </ CardActions > }
430451 </ CardContent > }
431452 </ Stack >
432453}
You can’t perform that action at this time.
0 commit comments