Skip to content

HistoryViewerField preview panel is redundant outside of CMSMain #452

@GuySartorelli

Description

@GuySartorelli

Outside of CMSMain (e.g. for a non-inline-editable elemental block), the history tab (powered by HistoryViewerField) displays its own preview of the record.

It doesn't take into account that there's already a preview panel open previewing the main record, so you end up with two preview panels - the normal one, and the history viewer one.

The history preview panel is only as high as the version table, so if there's not many versions you have to scroll to see much of anything.

Possible solutions

  1. When a HistoryViewerField is displayed, hide the main preview panel completely, so we only have the history viewer preview panel. This is consistent with the behaviour in CMSMain.
  2. Find a way for HistoryViewerField to hijack the existing preview panel (it does have a JS API so that should be doable)

Related issues

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions