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
[#61466] render hover card in wp user MCF after selection
Tobias Dillmann0c0858773c2c
diff --git a/frontend/src/app/shared/components/principal/principal-renderer.service.ts b/frontend/src/app/shared/components/principal/principal-renderer.service.tsindex 13ba2461c89..63c14102de3 100644--- a/frontend/src/app/shared/components/principal/principal-renderer.service.ts+++ b/frontend/src/app/shared/components/principal/principal-renderer.service.ts@@ -6,13 +6,11 @@ import idFromLink from 'core-app/features/hal/helpers/id-from-link';import { IPrincipal } from 'core-app/core/state/principals/principal.model';import { PrincipalLike } from './principal-types';import { hrefFromPrincipal, PrincipalType, typeFromHref } from './principal-helper';-import { PortalOutletTarget } from 'core-app/shared/components/modal/portal-outlet-target.enum';export type AvatarSize = 'default'|'medium'|'mini';export interface HoverCardOptions {url?:string;- modalTarget?:PortalOutletTarget;}export interface AvatarOptions {@@ -255,13 +253,13 @@ export class PrincipalRendererService {}private setHoverCardAttributes(element:HTMLElement, options:AvatarOptions, principal:PrincipalLike|IPrincipal):void {- const hoverCard = options.hoverCard;+ const hoverCard = options.hoverCard || {};if (!hoverCard?.url) {// In some cases, there is no URL given although a hover card is expected. For example when the principle// is rendered from an angular template. We try to infer the URL here.const url = this.userHoverCardUrl(principal);- if (hoverCard && url) {+ if (url) {hoverCard.url = url;} else {return;