1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-12 06:23:38 +00:00

fix sorting in all applications

This commit is contained in:
jaasen-livefront
2024-12-12 10:36:08 -08:00
parent 86095b672c
commit aee9dfcb15
3 changed files with 7 additions and 5 deletions

View File

@@ -28,6 +28,7 @@ export type ApplicationHealthReportDetail = {
memberDetails: MemberDetailsFlat[];
atRiskMemberDetails: MemberDetailsFlat[];
atRiskMemberCount: number;
};
/**

View File

@@ -290,6 +290,7 @@ export class RiskInsightsReportService {
: newUriDetail.cipherMembers,
atRiskMemberDetails: existingUriDetail ? existingUriDetail.atRiskMemberDetails : [],
atRiskPasswordCount: existingUriDetail ? existingUriDetail.atRiskPasswordCount : 0,
atRiskMemberCount: existingUriDetail ? existingUriDetail.atRiskMemberDetails.length : 0,
} as ApplicationHealthReportDetail;
if (isAtRisk) {

View File

@@ -66,10 +66,10 @@
<tr>
<th *ngIf="isCritialAppsFeatureEnabled$ | async"></th>
<th bitSortable="name" bitCell>{{ "application" | i18n }}</th>
<th bitSortable="atRiskPasswords" bitCell>{{ "atRiskPasswords" | i18n }}</th>
<th bitSortable="totalPasswords" bitCell>{{ "totalPasswords" | i18n }}</th>
<th bitSortable="atRiskMembers" bitCell>{{ "atRiskMembers" | i18n }}</th>
<th bitSortable="totalMembers" bitCell>{{ "totalMembers" | i18n }}</th>
<th bitSortable="atRiskPasswordCount" bitCell>{{ "atRiskPasswords" | i18n }}</th>
<th bitSortable="passwordCount" bitCell>{{ "totalPasswords" | i18n }}</th>
<th bitSortable="atRiskMemberCount" bitCell>{{ "atRiskMembers" | i18n }}</th>
<th bitSortable="memberCount" bitCell>{{ "totalMembers" | i18n }}</th>
</tr>
</ng-container>
<ng-template body let-rows$>
@@ -97,7 +97,7 @@
</td>
<td bitCell>
<span>
{{ r.atRiskMemberDetails.length }}
{{ r.atRiskMemberCount }}
</span>
</td>
<td bitCell data-testid="total-membership">