Skip to content

Commit 4806bf4

Browse files
committed
[Account Recovery][PM-18721] update as const / type
1 parent b0a16d8 commit 4806bf4

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

apps/web/src/app/admin-console/organizations/members/components/account-recovery/account-recovery-dialog.component.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,12 @@ export type AccountRecoveryDialogData = {
5353
organizationId: OrganizationId;
5454
};
5555

56-
export const AccountRecoveryDialogResultTypes = {
56+
export const AccountRecoveryDialogResultType = {
5757
Ok: "ok",
5858
} as const;
5959

60-
type AccountRecoveryDialogResultType =
61-
(typeof AccountRecoveryDialogResultTypes)[keyof typeof AccountRecoveryDialogResultTypes];
60+
export type AccountRecoveryDialogResultType =
61+
(typeof AccountRecoveryDialogResultType)[keyof typeof AccountRecoveryDialogResultType];
6262

6363
/**
6464
* Used in a dialog for initiating the account recovery process against a
@@ -144,7 +144,7 @@ export class AccountRecoveryDialogComponent {
144144
this.parentSubmittingBehaviorSubject.next(false);
145145
}
146146

147-
this.dialogRef.close(AccountRecoveryDialogResultTypes.Ok);
147+
this.dialogRef.close(AccountRecoveryDialogResultType.Ok);
148148
}
149149

150150
protected handleIsSubmittingChange(isSubmitting: boolean) {

apps/web/src/app/admin-console/organizations/members/members.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ import { openEntityEventsDialog } from "../manage/entity-events.component";
6969

7070
import {
7171
AccountRecoveryDialogComponent,
72-
AccountRecoveryDialogResultTypes,
72+
AccountRecoveryDialogResultType,
7373
} from "./components/account-recovery/account-recovery-dialog.component";
7474
import { BulkConfirmDialogComponent } from "./components/bulk/bulk-confirm-dialog.component";
7575
import { BulkDeleteDialogComponent } from "./components/bulk/bulk-delete-dialog.component";
@@ -755,7 +755,7 @@ export class MembersComponent extends BaseMembersComponent<OrganizationUserView>
755755
});
756756

757757
const result = await lastValueFrom(dialogRef.closed);
758-
if (result === AccountRecoveryDialogResultTypes.Ok) {
758+
if (result === AccountRecoveryDialogResultType.Ok) {
759759
await this.load();
760760
}
761761

0 commit comments

Comments
 (0)