From 66db8533285192ea7ca64cfdf680389b30518f91 Mon Sep 17 00:00:00 2001 From: Jonas Jabari Date: Tue, 26 Mar 2024 12:07:26 +0700 Subject: [PATCH 1/2] [#53577] Handle no active project attributes in project overview sidebar https://community.openproject.org/work_packages/53577 From beaaa312adc0da7a476dfa32bf9871dad28217da Mon Sep 17 00:00:00 2001 From: Jonas Jabari Date: Tue, 26 Mar 2024 12:25:31 +0700 Subject: [PATCH 2/2] show sidebar based on project custom fields count --- app/views/layouts/_common_head.html.erb | 3 ++- .../app/core/current-project/current-project.service.ts | 9 +++++++-- frontend/src/app/features/overview/overview.component.ts | 2 +- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/app/views/layouts/_common_head.html.erb b/app/views/layouts/_common_head.html.erb index 429cec0a4233..f6e22cb7d1cf 100644 --- a/app/views/layouts/_common_head.html.erb +++ b/app/views/layouts/_common_head.html.erb @@ -10,7 +10,8 @@ + data-project-identifier="<%= @project.identifier %>" + data-project-custom-fields-count="<%= @project.project_custom_fields.visible.count %>"/> <% end %>