Skip to content

Commit 3e63dd6

Browse files
committed
wip
1 parent e1aa2f0 commit 3e63dd6

2 files changed

Lines changed: 24 additions & 2 deletions

File tree

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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>}

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

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)