mirror of
https://github.com/moodle/moodle.git
synced 2025-04-11 19:42:35 +02:00
MDL-73012 core_courseformat: add pending to move section modal
This commit is contained in:
parent
b71f01981a
commit
f01ad40145
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -192,6 +192,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);
|
||||
|
||||
@ -244,6 +246,8 @@ export default class extends BaseComponent {
|
||||
this.reactive.dispatch('sectionMove', [sectionId], target.dataset.id);
|
||||
this._destroyModal(modal, editTools);
|
||||
});
|
||||
|
||||
pendingModalReady.resolve();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user