After modifying a resource, the prompt that warns about pending edits is triggered when the Resource menu item is clicked.
If I click "Leave" the pending changes are kept and I can open the Resource menu and click Save.
1 -The prompt shouldn't appear when the user clicks the menu
2- If the user clicks "Leave," the changes should be cleared.

After modifying a resource, the prompt that warns about pending edits is triggered when the Resource menu item is clicked.
If I click "Leave" the pending changes are kept and I can open the Resource menu and click Save.
1 -The prompt shouldn't appear when the user clicks the menu
2- If the user clicks "Leave," the changes should be cleared.