Skip to content

Replace window.confirm in deprecated_modal

Miranda Fluharty requested to merge 344122-glmodal-in-deprecated-notes into master

What does this MR do and why?

This MR replaces the calls to window.confirm in app/assets/javascripts/deprecated_notes.js with the implementation using GlModal as part of &6993 (closed).

Screenshots or screen recordings

before with this MR
Screen_Recording_2022-02-18_at_13.37.24 Screen_Recording_2022-02-18_at_13.22.29

How to set up and validate locally

For the first modal:

  1. comment on a commit diff
  2. edit the text of your comment
  3. press the Escape key while editing to cancel
  4. Are you sure you want to discard this comment? modal should appear

For the second modal:

  1. ??? (I still haven't figured out where this modal appears 😅)
  2. Your comment will be discarded. modal should appear

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #344122 (closed)

Edited by Miranda Fluharty

Merge request reports

Loading