Skip to content

Replace deprecated core/modal_factory with core/modal_delete_cancel#3226

Open
patmr7 wants to merge 1 commit into
MOODLE_502_STABLEfrom
wip-131869-m502
Open

Replace deprecated core/modal_factory with core/modal_delete_cancel#3226
patmr7 wants to merge 1 commit into
MOODLE_502_STABLEfrom
wip-131869-m502

Conversation

@patmr7

@patmr7 patmr7 commented Jun 12, 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 feedback deletion UI in the Assign feedback plugin to use Moodle’s newer core/modal_save_cancel API instead of the deprecated core/modal_factory save/cancel modal type.

Changes:

  • Replace core/modal_factory usage with core/modal_save_cancel in the AMD source module.
  • Switch to explicitly opening the modal on trigger click and manually calling modal.show().
  • Regenerate the built AMD artifacts (.min.js and sourcemap) to match the updated source.

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 Migrates deletion confirmation modal from modal_factory to modal_save_cancel and updates click handling.
mod/assign/feedback/onenote/amd/build/onenotedelete.min.js Rebuilt minified bundle reflecting the new modal implementation.
mod/assign/feedback/onenote/amd/build/onenotedelete.min.js.map Updated sourcemap and embedded sourcesContent for the rebuilt bundle.

💡 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

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

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

Comment thread mod/assign/feedback/onenote/amd/src/onenotedelete.js Outdated
@patmr7 patmr7 force-pushed the wip-131869-m502 branch 2 times, most recently from 0f6ee29 to 29c3b45 Compare June 18, 2026 14:17
@tmuras tmuras requested a review from Copilot June 18, 2026 14:35

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

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

Comment thread mod/assign/feedback/onenote/amd/src/onenotedelete.js
Comment thread mod/assign/feedback/onenote/amd/src/onenotedelete.js
Comment thread mod/assign/feedback/onenote/amd/src/onenotedelete.js Outdated
@patmr7 patmr7 force-pushed the wip-131869-m502 branch from 29c3b45 to 974e2d9 Compare June 19, 2026 09:23
@patmr7 patmr7 changed the title Replace deprecated core/modal_factory with core/modal_save_cancel Replace deprecated core/modal_factory with core/modal_delete_cancel Jun 19, 2026
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