MDL-73538 core_courseformat: fix course index manual completion
commit7c249a7d840426a95fda549fdbec989996b287f0
authorFerran Recio <ferran@moodle.com>
Thu, 20 Jan 2022 11:20:52 +0000 (20 12:20 +0100)
committerFerran Recio <ferran@moodle.com>
Wed, 2 Feb 2022 10:54:12 +0000 (2 11:54 +0100)
tree4ee459c96a90836b7d89c3ff244d301ca246cbe4
parentc352b700223e534781e8971631c73566be3205e6
MDL-73538 core_courseformat: fix course index manual completion

The current manual completion button triggers an event to alert the page
of any completion change. This event is capture in the course page by
the core_courseformat/local/content module but it was ignored when this
happens in an activity page. Now the activity header has its own
component to capture this event and support possible future reactive
actions.
course/format/amd/build/local/content/activity_header.min.js [new file with mode: 0644]
course/format/amd/build/local/content/activity_header.min.js.map [new file with mode: 0644]
course/format/amd/src/local/content/activity_header.js [new file with mode: 0644]
course/format/tests/behat/courseindex_completion.feature
lib/classes/output/activity_header.php
lib/outputrequirementslib.php
lib/templates/activity_header.mustache