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

Use correct API key to get "Accountable" and change background of counter bubble

Henriette Dargeca16219d0aac
diff --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.ts
index 9e0a4f892f1..025551f71b3 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
@@ -44,10 +44,10 @@ export class IanMenuComponent implements OnInit {
href: this.getHrefForFilters({ filter: 'reason', name: 'assigned' }),
},
{
- key: 'accountable',
+ key: 'responsible',
title: this.I18n.t('js.notifications.menu.accountable'),
icon: 'accountable',
- href: this.getHrefForFilters({ filter: 'reason', name: 'accountable' }),
+ href: this.getHrefForFilters({ filter: 'reason', name: 'responsible' }),
},
{
key: 'watched',
diff --git a/frontend/src/app/features/in-app-notifications/center/menu/state/ian-menu.service.ts b/frontend/src/app/features/in-app-notifications/center/menu/state/ian-menu.service.ts
index c2f9e65ab04..e7986f69860 100644
--- a/frontend/src/app/features/in-app-notifications/center/menu/state/ian-menu.service.ts
+++ b/frontend/src/app/features/in-app-notifications/center/menu/state/ian-menu.service.ts
@@ -46,13 +46,18 @@ export class IanMenuService {
return this.reload();
}
- public reload() {
+ public reload():void {
this.ianResourceService.fetchNotifications(IAN_MENU_PROJECT_FILTERS)
.subscribe((data) => {
const projectsFilter:Apiv3ListParameters = {
pageSize: 100,
- filters: [['id', '=', data.groups!.map(group => String(idFromLink(group._links.valueLink[0].href)))]],
+ filters: [],
};
+
+ if (data.groups) {
+ projectsFilter.filters = [['id', '=', data.groups.map((group) => String(idFromLink(group._links.valueLink[0].href)))]];
+ }
+
this.store.update({
notificationsByProject: data.groups,
projectsFilter,
diff --git a/frontend/src/app/features/in-app-notifications/center/menu/state/ian-menu.store.ts b/frontend/src/app/features/in-app-notifications/center/menu/state/ian-menu.store.ts
index 0f92da0ab7d..1e5833685e2 100644
--- a/frontend/src/app/features/in-app-notifications/center/menu/state/ian-menu.store.ts
+++ b/frontend/src/app/features/in-app-notifications/center/menu/state/ian-menu.store.ts
@@ -9,7 +9,7 @@ export interface IanMenuGroupingData {
projectHasParent?:boolean;
_links:{
valueLink:{
- href:string;
+ href:string;
}[];
};
}
@@ -17,7 +17,7 @@ export interface IanMenuGroupingData {
export interface IanMenuState {
notificationsByProject:IanMenuGroupingData[],
notificationsByReason:IanMenuGroupingData[],
- projectsFilter: Apiv3ListParameters,
+ projectsFilter:Apiv3ListParameters,
}
export const IAN_MENU_PROJECT_FILTERS:Apiv3ListParameters = {
diff --git a/frontend/src/app/shared/components/sidemenu/sidemenu.component.html b/frontend/src/app/shared/components/sidemenu/sidemenu.component.html
index fc727a660b2..f30aef39d59 100644
--- a/frontend/src/app/shared/components/sidemenu/sidemenu.component.html
+++ b/frontend/src/app/shared/components/sidemenu/sidemenu.component.html
@@ -37,7 +37,7 @@
[class]="'icon-' + item.icon"
></span>
<span class="op-sidemenu--item-title">{{ item.title }}</span>
- <span class="op-bubble" *ngIf="item.count">{{ item.count }}</span>
+ <span class="op-bubble op-bubble_alt_highlighting" *ngIf="item.count">{{ item.count }}</span>
</a>
<op-sidemenu
diff --git a/frontend/src/app/shared/components/sidemenu/sidemenu.component.ts b/frontend/src/app/shared/components/sidemenu/sidemenu.component.ts
index 28c4677e916..cbb19c9cc0b 100644
--- a/frontend/src/app/shared/components/sidemenu/sidemenu.component.ts
+++ b/frontend/src/app/shared/components/sidemenu/sidemenu.component.ts
@@ -10,8 +10,8 @@ import { I18nService } from 'core-app/core/i18n/i18n.service';
export interface IOpSidemenuItem {
title:string;
icon?:string;
- counter?:number;
- link:string;
+ count?:number;
+ href:string;
children?:IOpSidemenuItem[];
collapsible?:boolean;
}
diff --git a/frontend/src/global_styles/common/bubble/bubble.sass b/frontend/src/global_styles/common/bubble/bubble.sass
index 9d3fd67bb37..9a6b872beb7 100644
--- a/frontend/src/global_styles/common/bubble/bubble.sass
+++ b/frontend/src/global_styles/common/bubble/bubble.sass
@@ -1,6 +1,9 @@
.op-bubble
@include indicator-bubble
+ &_alt_highlighting
+ background: #878787
+
&_mini
width: 12px
height: 12px