mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 04:22:07 +02:00
MDL-79194 core_course: Refresh modules menus with section changes
* Whenever a section is hidden, we need to refresh all contextual (hamburger) menus of each course modules.
This commit is contained in:
parent
d76e211be6
commit
bbd992dcb6
2
course/format/amd/build/local/content.min.js
vendored
2
course/format/amd/build/local/content.min.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -238,6 +238,8 @@ export default class Component extends BaseComponent {
|
||||
{watch: `transaction:start`, handler: this._startProcessing},
|
||||
{watch: `course.sectionlist:updated`, handler: this._refreshCourseSectionlist},
|
||||
{watch: `section.cmlist:updated`, handler: this._refreshSectionCmlist},
|
||||
// Section visibility.
|
||||
{watch: `section.visible:updated`, handler: this._reloadSection},
|
||||
// Reindex sections and cms.
|
||||
{watch: `state:updated`, handler: this._indexContents},
|
||||
];
|
||||
|
Loading…
x
Reference in New Issue
Block a user