-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[PM-2057] update two factor email dialog #8974
base: main
Are you sure you want to change the base?
Conversation
…057-Update-two-factor-email-dialog
No New Or Fixed Issues Found |
</button> | ||
<button type="button" class="btn btn-outline-secondary" data-dismiss="modal"> | ||
{{ "close" | i18n }} | ||
<form [formGroup]="formGroup" [bitSubmit]="submit" [appApiAction]="formPromise" *ngIf="authed"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can remove the appApiAction
and formPromise
from this component
…057-Update-two-factor-email-dialog
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #8974 +/- ##
==========================================
- Coverage 28.06% 28.05% -0.02%
==========================================
Files 2391 2391
Lines 70512 70531 +19
Branches 13205 13208 +3
==========================================
- Hits 19789 19785 -4
- Misses 49158 49178 +20
- Partials 1565 1568 +3 ☔ View full report in Codecov by Sentry. |
…057-Update-two-factor-email-dialog
…057-Update-two-factor-email-dialog
const authComp: DialogRef<boolean, any> = TwoFactorEmailComponent.open(this.dialogService, { | ||
data: result, | ||
}); | ||
authComp.componentInstance.onChangeStatus.subscribe((enabled: boolean) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to have a takeUntil
that will clean up the subscription when the authComp.closed
observable emits.
…057-Update-two-factor-email-dialog
Type of change
Objective
Update Two Factor email component to use the component library.
Code changes
two-factor-email.component.html - Updated the bootstrap CSS to use the equivalent components from the Component Library.
two-factor-email.component.ts - Updated the dialog service from modal.
two-factor-setup.component.ts - Updated the email switch case to call the two-factor email dialog service.
Screenshots
t0w-factor-email.-.Made.with.Clipchamp.mp4