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
[#59925] show hover card for work package author
Tobias Dillmann7c7c91a02446
diff --git a/frontend/src/app/shared/components/user-link/user-link.component.ts b/frontend/src/app/shared/components/user-link/user-link.component.tsindex 20e51a9fa3d..e6c83eab9d4 100644--- a/frontend/src/app/shared/components/user-link/user-link.component.ts+++ b/frontend/src/app/shared/components/user-link/user-link.component.ts@@ -29,11 +29,14 @@import { ChangeDetectionStrategy, Component, Input } from '@angular/core';import { UserResource } from 'core-app/features/hal/resources/user-resource';import { I18nService } from 'core-app/core/i18n/i18n.service';+import { PathHelperService } from 'core-app/core/path-helper/path-helper.service';@Component({selector: 'op-user-link',template: `<a *ngIf="href"+ class="op-hover-card--preview-trigger"+ [attr.data-hover-card-url]="hoverCardUrl"[attr.href]="href"[attr.title]="label"[textContent]="name">@@ -47,7 +50,7 @@ import { I18nService } from 'core-app/core/i18n/i18n.service';export class UserLinkComponent {@Input() user:UserResource;- constructor(readonly I18n:I18nService) {+ constructor(readonly I18n:I18nService, readonly pathHelperService:PathHelperService) {}public get href() {@@ -61,4 +64,8 @@ export class UserLinkComponent {public get label() {return this.I18n.t('js.label_author', { user: this.name });}++ public get hoverCardUrl() {+ return this.user && this.user.id && this.pathHelperService.userHoverCardPath(this.user.id);+ }}