From fec76c3d57d925a8a90e7df1ac7ca951590cfca9 Mon Sep 17 00:00:00 2001 From: He Weiwei Date: Fri, 22 Nov 2019 10:03:02 +0800 Subject: [PATCH] fix(limited-guest): fix limited guest info missing in summary page (#9957) Signed-off-by: He Weiwei --- src/core/api/project.go | 1 + src/portal/src/app/project/summary/summary.component.html | 1 + 2 files changed, 2 insertions(+) diff --git a/src/core/api/project.go b/src/core/api/project.go index c24f07492..f345cc258 100644 --- a/src/core/api/project.go +++ b/src/core/api/project.go @@ -696,6 +696,7 @@ func getProjectMemberSummary(projectID int64, summary *models.ProjectSummary) { {common.RoleMaster, &summary.MasterCount}, {common.RoleDeveloper, &summary.DeveloperCount}, {common.RoleGuest, &summary.GuestCount}, + {common.RoleLimitedGuest, &summary.LimitedGuestCount}, } { wg.Add(1) go func(role int, count *int64) { diff --git a/src/portal/src/app/project/summary/summary.component.html b/src/portal/src/app/project/summary/summary.component.html index 3aa8a2f7b..070f01e09 100644 --- a/src/portal/src/app/project/summary/summary.component.html +++ b/src/portal/src/app/project/summary/summary.component.html @@ -19,6 +19,7 @@
  • {{ summaryInformation?.master_count }} {{'SUMMARY.MASTER' | translate}}
  • {{ summaryInformation?.developer_count }} {{'SUMMARY.DEVELOPER' | translate}}
  • {{ summaryInformation?.guest_count }} {{'SUMMARY.GUEST' | translate}}
  • +
  • {{ summaryInformation?.limited_guest_count }} {{'SUMMARY.LIMITED_GUEST' | translate}}