mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 20:42:22 +02:00
MDL-73012 core_courseformat: add pending to move section modal
This commit is contained in:
parent
0e08d0df60
commit
86fe8e582e
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -219,6 +219,8 @@ export default class extends BaseComponent {
|
||||
|
||||
event.preventDefault();
|
||||
|
||||
const pendingModalReady = new Pending(`courseformat/actions:prepareMoveSectionModal`);
|
||||
|
||||
// The section edit menu to refocus on end.
|
||||
const editTools = this._getClosestActionMenuToogler(target);
|
||||
|
||||
@ -282,6 +284,8 @@ export default class extends BaseComponent {
|
||||
this.reactive.dispatch('sectionMoveAfter', sectionIds, target.dataset.id);
|
||||
this._destroyModal(modal, editTools);
|
||||
});
|
||||
|
||||
pendingModalReady.resolve();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user