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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Only register listeners if the viewer is visible
Henriette Dargeeb92ede0a5de
diff --git a/frontend/src/app/modules/bim/bcf/bcf-wp-attribute-group/bcf-new-wp-attribute-group.component.ts b/frontend/src/app/modules/bim/bcf/bcf-wp-attribute-group/bcf-new-wp-attribute-group.component.tsindex 458e359be5e..9b08f44f8c5 100644--- a/frontend/src/app/modules/bim/bcf/bcf-wp-attribute-group/bcf-new-wp-attribute-group.component.ts+++ b/frontend/src/app/modules/bim/bcf/bcf-wp-attribute-group/bcf-new-wp-attribute-group.component.ts@@ -11,11 +11,13 @@ import {WorkPackageResource} from "core-app/modules/hal/resources/work-package-rexport class BcfNewWpAttributeGroupComponent extends BcfWpAttributeGroupComponent {ngAfterViewInit():void {- super.ngAfterViewInit();+ if (this.viewerVisible) {+ super.ngAfterViewInit();- // Save any leftover viewpoints when saving the work package- if (this.workPackage.isNew) {- this.observeCreation();+ // Save any leftover viewpoints when saving the work package+ if (this.workPackage.isNew) {+ this.observeCreation();+ }}}