Update remove epic modal message to include children info
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.
- Open an epic and add a couple of children epics (some children need to have further children present).
- Click on remove button on an epic without any children, the message on modal should not mention presence of any descendants.
- 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.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #12382 (closed)