mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 12:32:08 +02:00
MDL-77922 core_courseformat: add pending to move activity modal
This commit is contained in:
parent
0e08d0df60
commit
f81b79a4b1
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -299,6 +299,8 @@ export default class extends BaseComponent {
|
||||
|
||||
event.preventDefault();
|
||||
|
||||
const pendingModalReady = new Pending(`courseformat/actions:prepareMoveCmModal`);
|
||||
|
||||
// The section edit menu to refocus on end.
|
||||
const editTools = this._getClosestActionMenuToogler(target);
|
||||
|
||||
@ -385,6 +387,8 @@ export default class extends BaseComponent {
|
||||
this.reactive.dispatch('cmMove', cmIds, targetSectionId, targetCmId);
|
||||
this._destroyModal(modal, editTools);
|
||||
});
|
||||
|
||||
pendingModalReady.resolve();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user