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

Harmonize conditions for showing EE banner for boards

Christophe Bliardabad4f213ec9
diff --git a/frontend/src/app/features/boards/board/board-partitioned-page/board-list-container.component.html b/frontend/src/app/features/boards/board/board-partitioned-page/board-list-container.component.html
index 00ac09f72cf..fcc732bf6bf 100644
--- a/frontend/src/app/features/boards/board/board-partitioned-page/board-list-container.component.html
+++ b/frontend/src/app/features/boards/board/board-partitioned-page/board-list-container.component.html
@@ -1,6 +1,6 @@
<ng-container *ngIf="(board$ | async) as board">
<div
- *ngIf="!eeShowBanners || board.isFree"
+ *ngIf="!needEnterpriseEdition"
class="boards-list--container"
[ngClass]="{ '-free' : board.isFree }"
#container
@@ -41,7 +41,7 @@
</div>
<op-enterprise-banner
- *ngIf="eeShowBanners"
+ *ngIf="needEnterpriseEdition"
[moreInfoLink]="text.more_info_link"
[leftMargin]="true"
[linkMessage]="text.upgrade_to_ee_text"
diff --git a/frontend/src/app/features/boards/board/board-partitioned-page/board-list-container.component.ts b/frontend/src/app/features/boards/board/board-partitioned-page/board-list-container.component.ts
index bd145fc6d05..6fff5bda4bc 100644
--- a/frontend/src/app/features/boards/board/board-partitioned-page/board-list-container.component.ts
+++ b/frontend/src/app/features/boards/board/board-partitioned-page/board-list-container.component.ts
@@ -73,7 +73,7 @@ export class BoardListContainerComponent extends UntilDestroyedMixin implements
showHiddenListWarning:boolean = false;
- eeShowBanners = this.Banner.eeShowBanners;
+ needEnterpriseEdition = this.Banner.eeShowBanners;
private currentQueryUpdatedMonitoring:Subscription;
@@ -108,6 +108,10 @@ export class BoardListContainerComponent extends UntilDestroyedMixin implements
tap((board) => this.setupQueryUpdatedMonitoring(board)),
);
+ this.board$.subscribe((board) => {
+ this.needEnterpriseEdition = this.Banner.eeShowBanners && !board.isFree;
+ });
+
this.Boards.currentBoard$.next(id);
this.boardListCrossSelectionService