-
Notifications
You must be signed in to change notification settings - Fork 15
Ограниченная видимость курсов #593
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
bulat-tsydendorzhiev
commented
May 7, 2025
•
edited
Loading
edited
- При создании/редактировании курса можно выбрать/поменять опцию "Ограниченно видимый курс" и добавить/изменить описание. Для пояснения опции была добавлена подсказка с пояснением.
- Как выглядит страница, когда на нее переходят незарегистрированные студенты.
…editing a course.
var hasAccessToMaterials = courseDto.IsOpen | ||
? true | ||
: isCourseStudent; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
var hasAccessToMaterials = courseDto.IsOpen | |
? true | |
: isCourseStudent; | |
var hasAccessToMaterials = courseDto.IsOpen || isCourseStudent; |
}} | ||
/> | ||
} | ||
label="Ограниченно видимый курс" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
label="Ограниченно видимый курс" | |
label="Ограниченно-видимый курс" |
const showMaterialsTab = course.isOpen | ||
? true | ||
: isCourseMentor || isAcceptedStudent |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const showMaterialsTab = course.isOpen | |
? true | |
: isCourseMentor || isAcceptedStudent | |
const showMaterialsTab = course.isOpen || isCourseMentor || isAcceptedStudent |
@@ -131,7 +132,7 @@ export const CreateCourse: FC = () => { | |||
const courseViewModel = { | |||
name: state.courseName, | |||
groupNames: state.selectedGroups, | |||
isOpen: true, | |||
isOpen: !state.isOpen, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Почему отрицание?
modifiers: [{ name: "offset", options: { offset: [0, -5], } }] | ||
}} | ||
title={"Материалы заданий и задач будут доступны только преподавателям и студентам курса"}> | ||
<IconButton> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Давай всю эту галочку вынесем в отдельный компонент, чтобы конфигурацию для неё в двух местах не дублировать
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Хотя лучше поменять текст при создании курса на "Сделать курс ограниченно-видимым", чтобы соотносилось с галочкой выше
И добавь, пожалуйста, скриншот, как сейчас будет выглядеть ограниченно-видимый курс. Чтобы страница до интеграции описаний не была совсем уж пустой, можно туда добавить желтое предупреждение, что курс является ограниченно-видимым и для просмотра материалов необходимо на него записаться |