Empty drafts should not be saved #926

Open
opened 2026-02-04 22:57:48 +03:00 by OVERLORD · 3 comments
Owner

Originally created by @ezzra on GitHub (Nov 26, 2018).

If one enters the "New Page" form without changing anything, the page is nevertheless immediately saved as a draft and listed in the page view. I propose not to save unchanged drafts.

Originally created by @ezzra on GitHub (Nov 26, 2018). If one enters the "New Page" form without changing anything, the page is nevertheless immediately saved as a draft and listed in the page view. I propose not to save unchanged drafts.
OVERLORD added the 🛠️ Enhancement💆 UX labels 2026-02-04 22:57:48 +03:00
Author
Owner

@ssddanbrown commented on GitHub (Nov 28, 2018):

This would be ideally albeit tricky to do. There's a few items that can be created that need to be attached to the page instance hence why the draft is saved in the first place. Not impossible, Just complicates the code process.

@ssddanbrown commented on GitHub (Nov 28, 2018): This would be ideally albeit tricky to do. There's a few items that can be created that need to be attached to the page instance hence why the draft is saved in the first place. Not impossible, Just complicates the code process.
Author
Owner

@prohtex commented on GitHub (Jul 2, 2025):

+1 For this.

@prohtex commented on GitHub (Jul 2, 2025): +1 For this.
Author
Owner

@prohtex commented on GitHub (Jul 4, 2025):

This would be ideally albeit tricky to do. There's a few items that can be created that need to be attached to the page instance hence why the draft is saved in the first place. Not impossible, Just complicates the code process.

What if the "Delete" action is where the check is performed? If the page is empty/blank, "Delete" doesn't prompt the user before deletion. This seems like a happy medium that wouldn't hinder performance or add complexity anywhere...

@prohtex commented on GitHub (Jul 4, 2025): > This would be ideally albeit tricky to do. There's a few items that can be created that need to be attached to the page instance hence why the draft is saved in the first place. Not impossible, Just complicates the code process. What if the "Delete" action is where the check is performed? If the page is empty/blank, "Delete" doesn't prompt the user before deletion. This seems like a happy medium that wouldn't hinder performance or add complexity anywhere...
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#926