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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Hide sidemenu lists that are empty, add top spacing to sidemenu, update heading text
Benjamin Bädorfe5ebe4605602
diff --git a/config/locales/js-en.yml b/config/locales/js-en.ymlindex 61ebb4332fd..0eb34d72060 100644--- a/config/locales/js-en.yml+++ b/config/locales/js-en.yml@@ -582,8 +582,8 @@ en:menu:accountable: 'Accountable'assigned: 'Assigned'- by_project: 'By Project'- by_reason: 'By Reason'+ by_project: 'Unread by project'+ by_reason: 'Involvement'inbox: 'Inbox'mentioned: '@mentioned'watching: 'Watching'diff --git a/frontend/src/app/features/in-app-notifications/center/menu/menu.component.sass b/frontend/src/app/features/in-app-notifications/center/menu/menu.component.sassindex e6275bf577a..d72922e03ca 100644--- a/frontend/src/app/features/in-app-notifications/center/menu/menu.component.sass+++ b/frontend/src/app/features/in-app-notifications/center/menu/menu.component.sass@@ -1,21 +1,5 @@-.op-ian-center- display: grid- grid-template-rows: 1fr auto- height: 100%-- &--content- height: 100%-- &--viewport- height: 100%-- &--max-warning- margin-bottom: 0- text-align: center- font-style: italic-- :host- .-browser-safari &- // Because of Safari's viewport bug, the address bar overlaps content with height: 100vh- // Check #38082 before changing it- height: 100%+.op-ian-menu,+:host+ display: block+ // TODO: This should be standardized across the sidebar at some point+ padding-top: 16pxdiff --git a/frontend/src/app/features/in-app-notifications/center/menu/menu.component.ts b/frontend/src/app/features/in-app-notifications/center/menu/menu.component.tsindex b51724bf686..56a700c5710 100644--- a/frontend/src/app/features/in-app-notifications/center/menu/menu.component.ts+++ b/frontend/src/app/features/in-app-notifications/center/menu/menu.component.ts@@ -3,6 +3,7 @@ import {ChangeDetectorRef,Component,OnInit,+ HostBinding,} from '@angular/core';import { combineLatest } from 'rxjs';import { map } from 'rxjs/operators';@@ -27,6 +28,8 @@ const getUiLinkForFilters = (filters:INotificationPageQueryParameters = {}) => (changeDetection: ChangeDetectionStrategy.OnPush,})export class IanMenuComponent implements OnInit {+ @HostBinding('class.op-ian-menu') className = true;+baseMenuItems = [{key: 'inbox',diff --git a/frontend/src/app/shared/components/sidemenu/sidemenu.component.html b/frontend/src/app/shared/components/sidemenu/sidemenu.component.htmlindex 59b8d5b382b..be4197c1cd9 100644--- a/frontend/src/app/shared/components/sidemenu/sidemenu.component.html+++ b/frontend/src/app/shared/components/sidemenu/sidemenu.component.html@@ -47,7 +47,7 @@</a><op-sidemenu- *ngIf="item.children"+ *ngIf="item.children && item.children.length"[title]="item.title"[items]="item.children"[collapsible]="item.collapsible"