mirror of
https://github.com/bitwarden/browser
synced 2026-02-06 19:53:59 +00:00
PM-26675 implemented PR comments from Claude
This commit is contained in:
@@ -13,7 +13,7 @@ export type DrawerDetails = {
|
||||
open: boolean;
|
||||
invokerId: string;
|
||||
activeDrawerType: DrawerType;
|
||||
atRiskMemberDetails?: AtRiskMemberDetail[];
|
||||
atRiskMemberDetails?: AtRiskMemberDetail[] | null;
|
||||
appAtRiskMembers?: AppAtRiskMembersDialogParams | null;
|
||||
atRiskAppDetails?: AtRiskApplicationDetail[] | null;
|
||||
};
|
||||
|
||||
@@ -109,7 +109,7 @@ export class RiskInsightsComponent implements OnInit, OnDestroy {
|
||||
.subscribe((details) => {
|
||||
if (details.activeDrawerType !== DrawerType.None) {
|
||||
this.dialogService.openDrawer(RiskInsightsDrawerDialogComponent, {
|
||||
data: { ...details },
|
||||
data: details,
|
||||
});
|
||||
} else {
|
||||
this.dialogService.closeAll();
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
@if (isActiveDrawerType(drawerTypes.OrgAtRiskMembers)) {
|
||||
<bit-dialog dialogSize="large" disablePadding="false">
|
||||
<ng-container bitDialogTitle>
|
||||
<span>{{ "atRiskMembersWithCount" | i18n: drawerDetails.atRiskMemberDetails.length }}</span>
|
||||
<span>{{ "atRiskMembersWithCount" | i18n: drawerDetails.atRiskMemberDetails?.length }}</span>
|
||||
</ng-container>
|
||||
<ng-container bitDialogContent>
|
||||
<span bitTypography="body1" class="tw-text-muted tw-text-sm">{{
|
||||
(drawerDetails.atRiskMemberDetails.length > 0
|
||||
(drawerDetails.atRiskMemberDetails?.length > 0
|
||||
? "atRiskMembersDescription"
|
||||
: "atRiskMembersDescriptionNone"
|
||||
) | i18n
|
||||
@@ -62,11 +62,13 @@
|
||||
@if (isActiveDrawerType(drawerTypes.OrgAtRiskApps)) {
|
||||
<bit-dialog dialogSize="large" disablePadding="false">
|
||||
<ng-container bitDialogTitle>
|
||||
<span>{{ "atRiskApplicationsWithCount" | i18n: drawerDetails.atRiskAppDetails.length }}</span>
|
||||
<span>{{
|
||||
"atRiskApplicationsWithCount" | i18n: drawerDetails.atRiskAppDetails?.length
|
||||
}}</span>
|
||||
</ng-container>
|
||||
<ng-container bitDialogContent>
|
||||
<span bitTypography="body1" class="tw-text-muted tw-text-sm">{{
|
||||
(drawerDetails.atRiskAppDetails.length > 0
|
||||
(drawerDetails.atRiskAppDetails?.length > 0
|
||||
? "atRiskApplicationsDescription"
|
||||
: "atRiskApplicationsDescriptionNone"
|
||||
) | i18n
|
||||
|
||||
Reference in New Issue
Block a user