Skip to content

Update remove epic modal message to include children info

Kushal Pandya requested to merge 12382-update-epic-remove-modal-copy into master

What does this MR do and why?

When remove button is clicked on a child epic from the tree view, confirmation modal we show isn't context-aware and always warns about descendants getting removed even if epic doesn't have any children, this MR makes the message dynamic.

Screenshots or screen recordings

Before After
Screen_Recording_2022-10-14_at_11.46.59_AM Screen_Recording_2022-10-14_at_11.45.32_AM

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

  1. Open an epic and add a couple of children epics (some children need to have further children present).
  2. Click on remove button on an epic without any children, the message on modal should not mention presence of any descendants.
  3. Click on remove button on an epic with children, the message on modal should warn about descendants also getting removed.

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 #12382 (closed)

Merge request reports