Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ export type DrawerDetails = {
open: boolean;
invokerId: string;
activeDrawerType: DrawerType;
/**
* Explicit drawer width variant. Default to "small" to preserve current layout.
*/
size?: "small" | "default" | "large";
atRiskMemberDetails?: AtRiskMemberDetail[];
appAtRiskMembers?: AppAtRiskMembersDialogParams | null;
atRiskAppDetails?: AtRiskApplicationDetail[] | null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export class RiskInsightsDataService {
open: false,
invokerId: "",
activeDrawerType: DrawerType.None,
size: "small",
atRiskMemberDetails: [],
appAtRiskMembers: null,
atRiskAppDetails: null,
Expand Down Expand Up @@ -112,6 +113,7 @@ export class RiskInsightsDataService {
open: false,
invokerId: "",
activeDrawerType: DrawerType.None,
size: "small",
atRiskMemberDetails: [],
appAtRiskMembers: null,
atRiskAppDetails: null,
Expand All @@ -137,6 +139,7 @@ export class RiskInsightsDataService {
open: true,
invokerId,
activeDrawerType: DrawerType.OrgAtRiskMembers,
size: "small",
atRiskMemberDetails,
appAtRiskMembers: null,
atRiskAppDetails: null,
Expand Down Expand Up @@ -167,6 +170,7 @@ export class RiskInsightsDataService {
open: true,
invokerId,
activeDrawerType: DrawerType.AppAtRiskMembers,
size: "small",
atRiskMemberDetails: [],
appAtRiskMembers: atRiskMembers,
atRiskAppDetails: null,
Expand All @@ -192,6 +196,7 @@ export class RiskInsightsDataService {
open: true,
invokerId,
activeDrawerType: DrawerType.OrgAtRiskApps,
size: "small",
atRiskMemberDetails: [],
appAtRiskMembers: null,
atRiskAppDetails,
Expand Down Expand Up @@ -219,6 +224,7 @@ export class RiskInsightsDataService {
open: true,
invokerId,
activeDrawerType: DrawerType.OrgAtRiskMembers,
size: "small",
atRiskMemberDetails,
appAtRiskMembers: null,
atRiskAppDetails: null,
Expand Down Expand Up @@ -251,6 +257,7 @@ export class RiskInsightsDataService {
open: true,
invokerId,
activeDrawerType: DrawerType.OrgAtRiskApps,
size: "small",
atRiskMemberDetails: [],
appAtRiskMembers: null,
atRiskAppDetails: criticalAtRiskApps,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@if (isActiveDrawerType(drawerTypes.OrgAtRiskMembers)) {
<bit-dialog dialogSize="large" disablePadding="false">
<bit-dialog [dialogSize]="drawerDetails.size ?? 'small'" disablePadding="false">
<ng-container bitDialogTitle>
<span>{{
"atRiskMembersWithCount" | i18n: drawerDetails.atRiskMemberDetails?.length ?? 0
Expand Down Expand Up @@ -45,7 +45,7 @@
}

@if (isActiveDrawerType(drawerTypes.AppAtRiskMembers)) {
<bit-dialog dialogSize="large" disablePadding="false">
<bit-dialog [dialogSize]="drawerDetails.size ?? 'small'" disablePadding="false">
<ng-container bitDialogTitle>
<span>{{ drawerDetails.appAtRiskMembers?.applicationName }}</span>
</ng-container>
Expand All @@ -71,7 +71,7 @@
}

@if (isActiveDrawerType(drawerTypes.OrgAtRiskApps)) {
<bit-dialog dialogSize="large" disablePadding="false">
<bit-dialog [dialogSize]="drawerDetails.size ?? 'small'" disablePadding="false">
<ng-container bitDialogTitle>
<span>{{
"atRiskApplicationsWithCount" | i18n: drawerDetails.atRiskAppDetails?.length ?? 0
Expand Down
Loading