-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate Post Template Delete button from
confirm()
to `ConfirmDialo…
…g` (#37535) * migrate post template menu item from `confirm()` to `ConfirmDialog` * migrate the `Delete template` menu item from `confirm()` to `ConfirmDialog` * simplify ConfirmDialog state using the built in isOpen prop * explicitly close ConfirmDialog after confirmation * add e2e tests for Delete Template ConfirmDialog * replace editor animation that was removed for local testing * implement new `deleteAllTemplates()` util * simplify xpath for increased resiliancy when switching to template edit mode * save and reload post to ensure template dropdown is properly updated * replace an unneeded reload with a more user-relatable button click * ensure small viewports are able to open/close settings panel correctly
- Loading branch information
Showing
2 changed files
with
236 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters