Skip to content

Replace deprecated core/modal_factory with core/modal_delete_cancel#3236

Open
patmr7 wants to merge 1 commit into
MOODLE_501_STABLEfrom
wip-131869-m501
Open

Replace deprecated core/modal_factory with core/modal_delete_cancel#3236
patmr7 wants to merge 1 commit into
MOODLE_501_STABLEfrom
wip-131869-m501

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 feedback” UI to stop using the deprecated core/modal_factory and instead use Moodle’s core/modal_delete_cancel modal implementation.

Changes:

  • Replace core/modal_factory SAVE/CANCEL modal usage with core/modal_delete_cancel and bind modal creation/display on click.
  • Load modal title/body strings via Promise.all([...Str.get_string(...)]) before creating the modal.
  • Regenerate AMD build artifacts (.min.js and source map) to reflect the source change.

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 deletion confirmation modal implementation to core/modal_delete_cancel and updates event handling accordingly.
mod/assign/feedback/onenote/amd/build/onenotedelete.min.js Rebuilt minified AMD output reflecting the new modal implementation.
mod/assign/feedback/onenote/amd/build/onenotedelete.min.js.map Updated source map to align with the rebuilt minified bundle and new source.

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

Comment thread mod/assign/feedback/onenote/amd/src/onenotedelete.js
@patmr7 patmr7 force-pushed the wip-131869-m501 branch from f697ff6 to 1180d43 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