Skip to content

Commit

Permalink
fix(User):fixed wrong key (#6104)
Browse files Browse the repository at this point in the history
  • Loading branch information
dweinholz committed Jun 24, 2024
1 parent dab3838 commit ae72029
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,21 @@
@if (application.project_application_pi?.username) {
{{ application?.project_application_pi?.username }}
@if (application?.project_application_pi?.pi_project_count_total > 0) {
<span
data-toggle="tooltip"
title="This user acts as the Principal Investigator for {{
application?.project_application_pi?.pi_project_count_active
}} active project(s)"
>
<c-badge color="success">
{{ application?.project_application_pi?.pi_project_count_active }}</c-badge
></span
>/
<span
data-toggle="tooltip"
title="This user acts as the Principal Investigator for {{
application?.project_application_pi?.pi_project_count_total
}} project(s) (including this one)."
}} total project(s) (including this one)."
>
<c-badge color="info"> {{ application?.project_application_pi?.pi_project_count_total }}</c-badge></span
>
Expand Down Expand Up @@ -62,8 +72,8 @@
<tr>
<td>User Affiliations</td>
<td>
@if (application?.project_application_pi?.user_affiliations) {
{{ application?.project_application_pi?.user_affiliations }}
@if (application?.project_application_user?.user_affiliations) {
{{ application?.project_application_user?.user_affiliations }}
} @else {
<span class="spinner-border text-info"></span>
}
Expand All @@ -72,8 +82,8 @@
<tr>
<td>User Name</td>
<td>
@if (application?.project_application_pi?.username) {
{{ application?.project_application_pi?.username }}
@if (application?.project_application_user?.username) {
{{ application?.project_application_user?.username }}
} @else {
<span class="spinner-border text-info"></span>
}
Expand All @@ -82,8 +92,8 @@
<tr>
<td>User Email</td>
<td>
@if (application?.project_application_pi?.email) {
{{ application?.project_application_pi?.email }}
@if (application?.project_application_user?.email) {
{{ application?.project_application_user?.email }}
} @else {
<span class="spinner-border text-info"></span>
}
Expand Down
1 change: 1 addition & 0 deletions src/app/applications/application.model/user.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ export class User {
elixir_id: string;
email: string;
pi_project_count_total: number = 0;
pi_project_count_active: number = 0;
}

0 comments on commit ae72029

Please sign in to comment.