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

[32501] Check if add widget is allowed before showing

Oliver Günthere300391a1935
diff --git a/frontend/src/app/modules/grids/grid/grid.component.html b/frontend/src/app/modules/grids/grid/grid.component.html
index 763980ec775..aac06f35dc1 100644
--- a/frontend/src/app/modules/grids/grid/grid.component.html
+++ b/frontend/src/app/modules/grids/grid/grid.component.html
@@ -66,6 +66,7 @@
[cdkDropListData]="area"
[cdkDropListConnectedTo]="layout.gridAreaIds">
<div class="grid--widget-add"
+ *ngIf="add.isAllowed"
[title]="add.addText"
(click)="add.widget(area)">
</div>
@@ -84,6 +85,7 @@
[id]="gap.guid"
(mouseover)="layout.setMousedOverArea(gap)">
<div class="grid--widget-add -gap"
+ *ngIf="add.isAllowed"
[title]="add.addText"
(click)="add.widget(gap)">
</div>