Skip to content

Replace deprecated core/modal_factory with core/modal_delete_cancel#3238

Open
patmr7 wants to merge 1 commit into
MOODLE_405_STABLEfrom
wip-131869-m405
Open

Replace deprecated core/modal_factory with core/modal_delete_cancel#3238
patmr7 wants to merge 1 commit into
MOODLE_405_STABLEfrom
wip-131869-m405

Conversation

@patmr7

@patmr7 patmr7 commented Jun 18, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the OneNote assignment feedback delete confirmation UI to use Moodle’s newer core/modal_delete_cancel modal API instead of the deprecated core/modal_factory save/cancel modal.

Changes:

  • Replaced core/modal_factory usage with core/modal_delete_cancel and updated the modal event handling accordingly.
  • Updated the compiled AMD build artifacts (.min.js and sourcemap) to reflect the new source module.

Reviewed changes

Copilot reviewed 1 out of 3 changed files in this pull request and generated 1 comment.

File Description
mod/assign/feedback/onenote/amd/src/onenotedelete.js Switches delete confirmation modal implementation to core/modal_delete_cancel and updates event wiring.
mod/assign/feedback/onenote/amd/build/onenotedelete.min.js Rebuilt minified AMD output for the updated source.
mod/assign/feedback/onenote/amd/build/onenotedelete.min.js.map Updated sourcemap/sourcesContent for the rebuilt AMD output.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread mod/assign/feedback/onenote/amd/src/onenotedelete.js Outdated
@patmr7 patmr7 force-pushed the wip-131869-m405 branch from 796e9c9 to 919c413 Compare June 19, 2026 09:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants