download-backup-code.component.ts 573 Bytes
Newer Older
1 2 3 4 5 6
import { Component, Input } from '@angular/core';
import { BackupCodePdfService } from "../../backup-code-pdf.service";

@Component({
  selector: 'app-download-backup-code',
  templateUrl: './download-backup-code.component.html',
7
  styleUrls: ['./download-backup-code.component.scss', "../manage-backup-code.component.scss"]
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
})
export class DownloadBackupCodeComponent {

  @Input()
  code: string;
  @Input()
  hasFinished: boolean;

  constructor(private backupCodeToPdf: BackupCodePdfService) {
  }

  downloadPDF() {
    this.backupCodeToPdf.download(this.code);
  }
}