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
Remove unnecessary scrollbars and resizer if both sides of a bcf split view are empty
Inga Mai85de16a3dfab
diff --git a/frontend/src/app/modules/bim/ifc_models/bcf/list-container/bcf-list-container.component.ts b/frontend/src/app/modules/bim/ifc_models/bcf/list-container/bcf-list-container.component.tsindex d478a96aaf6..c9632d57f10 100644--- a/frontend/src/app/modules/bim/ifc_models/bcf/list-container/bcf-list-container.component.ts+++ b/frontend/src/app/modules/bim/ifc_models/bcf/list-container/bcf-list-container.component.ts@@ -35,6 +35,10 @@ export class BcfListContainerComponent extends WorkPackageListViewComponent impl}protected showResizerInCardView():boolean {- return this.bimView.currentViewerState() === bimSplitViewIdentifier;+ if (this.noResults && this.ifcModelsService.models.length === 0) {+ return false;+ } else {+ return this.bimView.currentViewerState() === bimSplitViewIdentifier;+ }}}diff --git a/frontend/src/app/modules/bim/ifc_models/ifc-viewer/ifc-viewer.component.sass b/frontend/src/app/modules/bim/ifc_models/ifc-viewer/ifc-viewer.component.sassindex 76454e032ca..c6f81d38305 100644--- a/frontend/src/app/modules/bim/ifc_models/ifc-viewer/ifc-viewer.component.sass+++ b/frontend/src/app/modules/bim/ifc_models/ifc-viewer/ifc-viewer.component.sass@@ -3,6 +3,10 @@.ifc-model-viewerheight: 100%+ .notification-box+ position: absolute+ right: 10px+.ifc-model-viewer--nav-cube-canvasposition: absolutewidth: 200pxdiff --git a/frontend/src/app/modules/work_packages/routing/wp-list-view/wp-list-view.component.ts b/frontend/src/app/modules/work_packages/routing/wp-list-view/wp-list-view.component.tsindex 2dcc8ea280f..6d91e158344 100644--- a/frontend/src/app/modules/work_packages/routing/wp-list-view/wp-list-view.component.ts+++ b/frontend/src/app/modules/work_packages/routing/wp-list-view/wp-list-view.component.ts@@ -44,6 +44,7 @@ import {CurrentProjectService} from "core-components/projects/current-project.seimport {WorkPackageViewFiltersService} from "core-app/modules/work_packages/routing/wp-view-base/view-services/wp-view-filters.service";import {UntilDestroyedMixin} from "core-app/helpers/angular/until-destroyed.mixin";import {QueryResource} from "core-app/modules/hal/resources/query-resource";+import {IfcModelsDataService} from "core-app/modules/bim/ifc_models/pages/viewer/ifc-models-data.service";@Component({selector: 'wp-list-view',@@ -71,6 +72,9 @@ export class WorkPackageListViewComponent extends UntilDestroyedMixin implements/** Determine when query is initially loaded */tableInformationLoaded = false;+ /** If loaded list of work packages is empty */+ noResults:boolean = false;+/** Whether we should render a blocked view */showResultOverlay$ = this.wpViewFilters.incomplete$;@@ -86,6 +90,7 @@ export class WorkPackageListViewComponent extends UntilDestroyedMixin implementsreadonly deviceService:DeviceService,readonly CurrentProject:CurrentProjectService,readonly wpDisplayRepresentation:WorkPackageViewDisplayRepresentationService,+ readonly ifcModelsService:IfcModelsDataService,readonly cdRef:ChangeDetectorRef) {super();}@@ -99,6 +104,7 @@ export class WorkPackageListViewComponent extends UntilDestroyedMixin implements).subscribe((query) => {// Update the visible representationthis.updateViewRepresentation(query);+ this.noResults = query.results.total === 0;this.cdRef.detectChanges();});}