Skip to content

Cannot open sidebar tab from custom file preview #3107

@howkymike

Description

@howkymike

Describe the bug
When using PreviewComponent in the custom Component in the not simple mode ("simplestMode": false"), the sidebar is not opening.

Environment

  • ACA version: 4.0.0-A.3
  • ACS version: 7.2

To Reproduce
Steps to reproduce the behavior:

  1. Create a custom component with a PreviewComponent (using configuration file and "app.components.preview" component)
  2. Open a file preview
  3. Click "View Details"
  4. Nothing happens.

Expected behavior
In the step 4, a right sidebar with properties and comments tab should appear.

Additional context
This problem does not occur when a URL does not contain "viewer:view".
One simple fix is to edit document-base-page.component.ts line 78 to:

this.infoDrawerOpened$ = this.store.select(isInfoDrawerOpened).pipe(map((infoDrawerState) => this.isOutletPreviewUrl() && infoDrawerState));

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions