Skip to content

Replace deprecated core/modal_factory with core/modal_delete_cancel#3237

Open
patmr7 wants to merge 1 commit into
MOODLE_500_STABLEfrom
wip-131869-m500
Open

Replace deprecated core/modal_factory with core/modal_delete_cancel#3237
patmr7 wants to merge 1 commit into
MOODLE_500_STABLEfrom
wip-131869-m500

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 deletion UI to stop using the deprecated core/modal_factory API and instead use core/modal_delete_cancel, aligning the plugin with current Moodle core modal patterns.

Changes:

  • Replace core/modal_factory usage with core/modal_delete_cancel for the delete confirmation modal.
  • Update modal event handling to use the delete event and explicitly show the modal on click.
  • Regenerate the built AMD artifact (.min.js) and source map to match the updated source module.

Reviewed changes

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

File Description
mod/assign/feedback/onenote/amd/src/onenotedelete.js Switches delete confirmation flow to core/modal_delete_cancel and updates event wiring.
mod/assign/feedback/onenote/amd/build/onenotedelete.min.js Rebuilt minified AMD output reflecting the new modal API usage.
mod/assign/feedback/onenote/amd/build/onenotedelete.min.js.map Updated sourcemap 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
Comment thread mod/assign/feedback/onenote/amd/src/onenotedelete.js Outdated
@patmr7 patmr7 force-pushed the wip-131869-m500 branch from d974317 to f68bb0b 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