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

disble action buttons while data is not loaaded

bsatarnejad1468bdcd0e3d
diff --git a/frontend/src/app/shared/components/project-include/project-include.component.html b/frontend/src/app/shared/components/project-include/project-include.component.html
index 6fc867fcaa2..b7eb2bdc15b 100644
--- a/frontend/src/app/shared/components/project-include/project-include.component.html
+++ b/frontend/src/app/shared/components/project-include/project-include.component.html
@@ -59,13 +59,17 @@
<div class="spot-action-bar--left"></div>
<div class="spot-action-bar--right">
<button
+ [disabled]="!(hasProjects$ | async)"
class="spot-button spot-button_outlined spot-button_main"
type="button"
(click)="clearSelection()"
>
{{ text.clear_selection }}
</button>
- <button class="spot-button spot-button_main">
+ <button
+ [disabled]="!(hasProjects$ | async)"
+ class="spot-button spot-button_main"
+ >
{{ text.apply }}
</button>
</div>