Show the "Unsaved changes" modal when click Cancel

Description

The "Unsaved changes" modal is currently shown when leaving the page (for example click another navigation item) with unsaved changes.

This dialog should also be shown when a user clicks Cancel with unsaved changes, to prevent losing changes when the Cancel button is accidentally clicked.

screenshot-2 shows the dialog which is shown when you click another naviation item. screenshot-3 shows the Cancel button. The dialog is currently not shown when clicking Cancel, this should be changed.

Deployment actions

None

Technical tasks

None

Status

Assignee

Unassigned

Reporter

Marijn Otte

Labels

None

Product owner

None

OTM project ID

None

Client

Marijn Otte

Plan date

None

Developer

None

Code reviewer

Marijn Otte

Max. hours

None

Error message

None

Follow up date

None

Switches

None

Refiner

None

Components

Fix versions

Priority

Blocker
Configure