Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot open sidebar tab from custom file preview #3107

Open
howkymike opened this issue Apr 4, 2023 · 0 comments
Open

Cannot open sidebar tab from custom file preview #3107

howkymike opened this issue Apr 4, 2023 · 0 comments
Labels

Comments

@howkymike
Copy link

howkymike commented Apr 4, 2023

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));
@howkymike howkymike changed the title Cannot open sidebar tab from custom file Preview Cannot open sidebar tab from custom file preview Apr 4, 2023
@DenysVuika DenysVuika added the bug label May 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants