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

Fix h3 structure of bcf attribute group

Oliver Günther1c85b2f95411
diff --git a/frontend/src/app/modules/bim/bcf/bcf-wp-single-view/bcf-wp-single-view.component.html b/frontend/src/app/modules/bim/bcf/bcf-wp-single-view/bcf-wp-single-view.component.html
index 5f4948a4f04..a6db365c819 100644
--- a/frontend/src/app/modules/bim/bcf/bcf-wp-single-view/bcf-wp-single-view.component.html
+++ b/frontend/src/app/modules/bim/bcf/bcf-wp-single-view/bcf-wp-single-view.component.html
@@ -1,10 +1,18 @@
-<h3 class="attributes-group header-text">BCF</h3>
-<div class="bcf--viewpoints">
- <ngx-gallery [options]="galleryOptions"
- [images]="galleryImages"
- (previewOpen)="galleryPreviewOpen()"
- (previewClose)="galleryPreviewClose()">
- </ngx-gallery>
-</div>
+<div class="attributes-group description-group">
+ <div class="attributes-group--header">
+ <div class="attributes-group--header-container">
+ <h3 class="attributes-group--header-text"
+ [textContent]="text.bcf"></h3>
+ </div>
+ </div>
-<bcf-add-viewpoint-button [workPackage]="workPackage"></bcf-add-viewpoint-button>
\ No newline at end of file
+ <div class="bcf--viewpoints">
+ <ngx-gallery [options]="galleryOptions"
+ [images]="galleryImages"
+ (previewOpen)="galleryPreviewOpen()"
+ (previewClose)="galleryPreviewClose()">
+ </ngx-gallery>
+ </div>
+
+ <bcf-add-viewpoint-button [workPackage]="workPackage"></bcf-add-viewpoint-button>
+</div>
\ No newline at end of file
diff --git a/frontend/src/app/modules/bim/bcf/bcf-wp-single-view/bcf-wp-single-view.component.sass b/frontend/src/app/modules/bim/bcf/bcf-wp-single-view/bcf-wp-single-view.component.sass
index 7a3bf6b154e..0151e10bbbb 100644
--- a/frontend/src/app/modules/bim/bcf/bcf-wp-single-view/bcf-wp-single-view.component.sass
+++ b/frontend/src/app/modules/bim/bcf/bcf-wp-single-view/bcf-wp-single-view.component.sass
@@ -15,3 +15,7 @@ ngx-gallery ::ng-deep
.ngx-gallery-icon
color: var(--content-link-color)
+ // Disable red border on active thumbnails
+ .ngx-gallery-active
+ border: none !important
+
diff --git a/frontend/src/app/modules/bim/bcf/bcf-wp-single-view/bcf-wp-single-view.component.ts b/frontend/src/app/modules/bim/bcf/bcf-wp-single-view/bcf-wp-single-view.component.ts
index c42d3bdc312..b164af30327 100644
--- a/frontend/src/app/modules/bim/bcf/bcf-wp-single-view/bcf-wp-single-view.component.ts
+++ b/frontend/src/app/modules/bim/bcf/bcf-wp-single-view/bcf-wp-single-view.component.ts
@@ -9,6 +9,7 @@ import {BcfApiService} from "core-app/modules/bim/bcf/api/bcf-api.service";
import {BcfViewpointPaths} from "core-app/modules/bim/bcf/api/viewpoints/bcf-viewpoint.paths";
import {CurrentProjectService} from "core-components/projects/current-project.service";
import {ModelViewerService} from "core-app/modules/bcf/services/model-viewer.service";
+import {I18nService} from "core-app/modules/common/i18n/i18n.service";
export type ViewPointOriginal = { uuid:string, snapshot_id:string, snapshot_file_name:string };
export type ViewPoint = { snapshotId:string, snapshotFileName?:string, snapshotFullPath:string };
@@ -50,14 +51,14 @@ export class BcfWpSingleViewComponent implements OnInit, OnDestroy {
downloadIcon: 'icon-download',
thumbnailActions: [
{
- icon: 'icon-modules',
+ icon: 'icon-watched',
onClick: this.setViewpoint.bind(this),
titleText: 'Set viewpoint'
}
],
actions: [
{
- icon: 'icon-modules',
+ icon: 'icon-watched',
onClick: this.setViewpoint.bind(this),
titleText: 'Set viewpoint'
}
@@ -84,7 +85,9 @@ export class BcfWpSingleViewComponent implements OnInit, OnDestroy {
viewpoints:ViewPoint[];
- text = {};
+ text = {
+ bcf: this.I18n.t('js.bcf.label_bcf')
+ };
constructor(readonly state:StateService,
readonly pathHelper:PathHelperService,
@@ -92,7 +95,7 @@ export class BcfWpSingleViewComponent implements OnInit, OnDestroy {
readonly bcfApi:BcfApiService,
readonly modelViewerService:ModelViewerService,
readonly revitBridge:RevitBridgeService,
- ) {
+ readonly I18n:I18nService) {
}
ngOnInit():void {
diff --git a/modules/bim/config/locales/js-en.yml b/modules/bim/config/locales/js-en.yml
index 74518c9ad4a..e4d13dcf290 100644
--- a/modules/bim/config/locales/js-en.yml
+++ b/modules/bim/config/locales/js-en.yml
@@ -2,6 +2,7 @@
en:
js:
bcf:
+ label_bcf: 'BCF'
import: 'Import'
export: 'Export'
viewpoint: 'Viewpoint'