feat(dashboard): add content page options menu (#757)
* feat(dashboard): add content page options menu Add a three-dot menu on the course Content page with actions to unlock all locked lessons/exercises and toggle content grouping. Reuse shared locked-content collection logic from course settings. Co-authored-by: Rotimi Best <[email protected]> * fix(dashboard): keep unlock-all enabled and add menu icons Show a success snackbar when all content is already unlocked instead of disabling the action. Add lock-open and table-of-contents icons to menu items. Co-authored-by: Rotimi Best <[email protected]> * fix(dashboard): check courseApi.update return for grouping toggle Use the update() return value instead of courseApi.success, which can be false after a successful PUT if the follow-up refresh request fails. Co-authored-by: Rotimi Best <[email protected]> --------- Co-authored-by: Rotimi Best <[email protected]>
This commit is contained in:
co-authored by
Rotimi Best
parent
bfafc685e0
commit
656fa4fa7e
@@ -289,7 +289,10 @@
|
||||
"successful_integration": "Интеграция прошла успешно",
|
||||
"successful_deletion": "Интеграция удалена",
|
||||
"update_successful": "Обновление успешно выполнено",
|
||||
"unlocked_all_content": "Все предметы курса разблокированы"
|
||||
"unlocked_all_content": "Все предметы курса разблокированы",
|
||||
"all_content_already_unlocked": "Весь контент уже разблокирован",
|
||||
"content_grouping_enabled": "Группировка контента включена",
|
||||
"content_grouping_disabled": "Группировка контента отключена"
|
||||
}
|
||||
},
|
||||
"people": {
|
||||
@@ -1320,6 +1323,12 @@
|
||||
"add_content_create_lesson": "Создать урок",
|
||||
"add_content_section_title_placeholder": "например, Модуль 1: Введение",
|
||||
"add_content_lesson_title_placeholder": "например, Начало работы с переменными",
|
||||
"content_menu": {
|
||||
"label": "Параметры контента",
|
||||
"unlock_all": "Разблокировать весь контент",
|
||||
"enable_grouping": "Включить группировку контента",
|
||||
"disable_grouping": "Отключить группировку контента"
|
||||
},
|
||||
"join_lesson": "Присоединиться к уроку",
|
||||
"no_link": "Нет ссылки",
|
||||
"no_tutor": "Репетитор не добавлен",
|
||||
|
||||
Reference in New Issue
Block a user