Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Close gallery preview when viewpoint is sent to viewer

Aleix Suauc7b82e47a830
diff --git a/frontend/src/app/modules/bim/bcf/bcf-wp-attribute-group/bcf-wp-attribute-group.component.ts b/frontend/src/app/modules/bim/bcf/bcf-wp-attribute-group/bcf-wp-attribute-group.component.ts
index fa8debcedb7..7649a4f8589 100644
--- a/frontend/src/app/modules/bim/bcf/bcf-wp-attribute-group/bcf-wp-attribute-group.component.ts
+++ b/frontend/src/app/modules/bim/bcf/bcf-wp-attribute-group/bcf-wp-attribute-group.component.ts
@@ -208,7 +208,10 @@ export class BcfWpAttributeGroupComponent extends UntilDestroyedMixin implements
return [
{
icon: 'icon-view-model',
- onClick: (evt:any, index:number) => this.showViewpoint(this.workPackage, index),
+ onClick: (evt:any, index:number) => {
+ this.showViewpoint(this.workPackage, index);
+ this.gallery.preview.close();
+ },
titleText: this.text.show_viewpoint
},
{