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

change enterprise page component to check if there is no breadcrumb on the page then hide it to have the same space as other pages having a breadcrumb

bsatarnejad2af6f85b8462
diff --git a/frontend/src/app/shared/components/enterprise-page/enterprise-page.component.html b/frontend/src/app/shared/components/enterprise-page/enterprise-page.component.html
index 8637f31f6d4..ab053749cf9 100644
--- a/frontend/src/app/shared/components/enterprise-page/enterprise-page.component.html
+++ b/frontend/src/app/shared/components/enterprise-page/enterprise-page.component.html
@@ -1,4 +1,5 @@
-<div class="upsale-notification">
+<div class="upsale-notification"
+ [ngClass]="{ 'hide_breadcrumb': hide_breadcrumb }">
<h2 [textContent]="feature_title"></h2>
<p *ngIf="feature_description">{{feature_description}}</p>
<p *ngIf="!feature_description" class="upsale--feature-reference">
diff --git a/frontend/src/app/shared/components/enterprise-page/enterprise-page.component.ts b/frontend/src/app/shared/components/enterprise-page/enterprise-page.component.ts
index af8d9ea8a2e..350774491bc 100644
--- a/frontend/src/app/shared/components/enterprise-page/enterprise-page.component.ts
+++ b/frontend/src/app/shared/components/enterprise-page/enterprise-page.component.ts
@@ -29,6 +29,8 @@ export class EnterprisePageComponent {
@Input() public more_info:string;
+ @Input() public hide_breadcrumb = false;
+
text = {
button_contact_us: this.I18n.t('js.admin.enterprise.upsale.button_contact_us'),
upgrade: this.I18n.t('js.admin.enterprise.upsale.button_upgrade'),