[CONTEDIT-449] Show a warning message when closing the story edit window with X-close button Created: 18/Oct/21  Updated: 26/Aug/22

Status: Open
Project: Content Editor
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Minor
Reporter: Martin Drápela Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File Screenshot 2021-09-23 at 09.02.29.png     PNG File image-2021-10-15-07-41-14-300.png    
Issue Links:
Cloners
clones CONTEDIT-423 Implement save action without closing... Open
Relates
relates to CONTEDIT-177 The close button in the Stories app a... Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Date of First Response:
Epic Link: AuthorX improvements
Team: AuthorX

 Description   

Current behavior

if the editor keeps editing (and this would be then the same after this improvement is brought in) - and closes the edit window by clicking the X-close button (on the tab or app), there is no warning that the new edits will be lost - the dialog closes instantly, effectively dropping any subsequent changes.

Desired behavior

The X-close button should open the warning dialog after additional changes have been introduced but not saved

 

ACs

When clicking the close button and

  1. Changes were done, show a message before the closing 'Do you want to save changes? Yes / No'
  2. No changes were done, don't show any message, just close

Generated at Mon Feb 12 00:20:32 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.