Problem/Motivation

From #3567225: Allow per-node override of Content Template via checkbox in node selector #20 by @belkin13:

It's very easy to accidentally reset the override settings. (perhaps a confirmation dialog should be added?)

Might also make sense for CSRF reasons?

Steps to reproduce

Proposed resolution

Remaining tasks

  • ✅ File an issue
  • ➖ Addition/Change/Update/Fix
  • ➖ Testing to ensure no regression
  • ➖ Automated unit testing coverage
  • ➖ Automated functional testing coverage
  • ➖ UX/UI designer responsibilities
  • ➖ Readability
  • ➖ Accessibility
  • ➖ Performance
  • ➖ Security
  • ➖ Documentation
  • ➖ Code review by maintainers
  • ➖ Full testing and approval
  • ➖ Credit contributors
  • ➖ Review with the product owner
  • ➖ Release notes snippet
  • ❌ Release

API changes

  • N/A

Data model changes

  • N/A

Release notes snippet

  • N/A
Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

anybody created an issue. See original summary.

rajab natshah’s picture

Assigned: Unassigned » rajab natshah

anybody’s picture

Thank you very much @rajab natshah - code-wise this already looks VERY good!

Now that also this uses the jQuery UI dialog indirectly, I'd once again like to promote pushing #2158943: Add a native dialog element using HTMX to deprecate the jQuery UI dialog forward to get rid of that.

rajab natshah’s picture

Title: Add a confirmation dialog for the reset » Add a confirmation before resetting a Canvas layout
rajab natshah’s picture

Assigned: rajab natshah » Unassigned
anybody’s picture

Thanks @rajab natshah - implementation LGTM.

rajab natshah’s picture

Status: Needs review » Needs work

  • rajab natshah committed fcb822b6 on 1.0.x
    feat: #3590567 Add a confirmation step before resetting a Canvas layout
    
rajab natshah’s picture

Status: Needs work » Active
rajab natshah’s picture

Status: Active » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.