Commit 6d948807 authored by Emily Jensen's avatar Emily Jensen

Moved download PDF to new component

parent d28e4c74
......@@ -60,34 +60,12 @@
</div>
</div>
<app-form-label
[isLarge]="true"
[isInactive]="!hasFinished"
[isComplete]="false">
Download PDF with New Backup Code
</app-form-label>
<div *ngIf="hasFinished" class="register-step__feedback">
<p>
Your backup code is the <strong>only</strong> way to recover your
account if you forget&nbsp;your&nbsp;password.
</p>
<p>
Download it, print it out, and save it someplace safe. Destroy your old
backup&nbsp;code&nbsp;file.
</p>
</div>
</form>
<div *ngIf="hasFinished">
<button (click)="downloadPDF()" class="button button--primary u-margin-b-15">
Download
</button>
<p class="manage-backup-code__note">
Your previous code is now invalid. If you navigate away from this page,
you will not be able to use&nbsp;this&nbsp;code&nbsp;either.
</p>
</div>
<app-download-backup-code
[hasFinished]="hasFinished"
class="register-step__feedback"
[code]="backupCode">
</app-download-backup-code>
</div>
......@@ -52,11 +52,6 @@ export class ManageBackupCodeComponent implements OnDestroy {
this.newBackupCode.emit();
}
}
downloadPDF() {
if (this.form.isValid) {
this.getBackupPDF.emit();
}
}
ngOnDestroy() {
this.reset.emit();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment