Skip to content

Editor draft actions should dismiss existing notifications so success notifications are clear #5032

@WyattBest

Description

@WyattBest

Dan Edit: This issue was re-purposed to focus on making the notifications clearer, as discussed further on in this issue. The original bug report details below may not be so relevant, but remain for context.

Describe the Bug

Editing a draft that is older than the current version of the page produces this warning:

This page has been updated since this draft was created. It is recommended that you discard this draft or take care not to overwrite any page changes.

It seems that this should say "recommended that you delete this draft." Or perhaps something is wrong with the discard draft action.

Steps to Reproduce

  1. Go to a page and start a draft but do not publish.
  2. Have someone else edit the page and publish the edit.
  3. Resume editing your draft. The warning appears.
  4. Click Discard Draft. The page reloads but the warning does not go away.
  5. Click Delete Draft. The page reloads and the warning goes away.

Expected Behaviour

I would expect that clicking Discard Draft would resolve the warning about needing to discard the draft.

Screenshots or Additional Context

image

Browser Details

Firefox 126.0 on Windows 10

Exact BookStack Version

v24.05.1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions