Skip to content

Ask if you want to save the draft (do not save any drafts so as not to accumulate dozens of unnecessary drafts) #12328

@Jerome-Herbinet

Description

@Jerome-Herbinet

Is your feature request related to a problem? Please describe.

When writing an email and ...

  • pressing the “Escape” key
  • clicking on the close button
  • clicking outside the compose window (in the dark area)...

... a draft is automatically saved.

In theory, this behavior may seem relevant, but in practice, it creates a rather annoying problem: you end up unintentionally accumulating a large number of drafts, 90% of which have no reason to exist... and frankly, in everyday professional use, it's very annoying. What a mess in this draft folder! :-D

In these three UI scenarios:

  • a pop-up window should appear in ALL cases asking you whether you want to save the (new) draft or not.
  • the window should not be minimized in the bottom right corner; minimization should ONLY occur when you have deliberately clicked on the "_" minimize button. In addition, I have noticed another problem, which is that if you have minimized the new email and then want to go somewhere else in Nextcloud, a browser popup appears asking if you want to leave the current page (or not), with the risk of losing the email. Frankly, I think a lot of people don't understand this behavior : “What the heck is this pop-up window?” they say ;-). I understand that this is related to the fact that the minimized email is technically an unvalidated form, but in practice, it's not easy for non-IT people to understand. In my opinion, this situation should be avoided.
  • The same applies when reopening an existing draft. If, after modifying the draft, you exit it in one of the three ways described above, a pop-up should appear asking whether you want to save the changes or not. And same applies when minimizing compose window.

Describe the solution you'd like

Read above

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions