Add "Are you sure?" dialog when attempting to `Cancel` out of a discussion comment box

The following discussion from gitlab-ce!24480 should be addressed:

  • @annabeldunstone started a discussion: (+2 comments)

    A nice-to-have, and somewhat unrelated to this issue as it already exists in production-

    Can we add a confirmation dialog when you click Cancel if there's text in the box?

Assignee Loading
Time tracking Loading