Commit ba8ce903 authored by Emily Jensen's avatar Emily Jensen

Moved logic to download backup code

parent 0a20b607
<Label class="p-10 m-b-10" text="Backup Code: "></Label>
<Label class="p-10 m-b-10" [text]="code"></Label>
<Button
(tap)="generateBarcode()"
id="barcode"
text="Step 3: Generate Backup Code Page"
></Button>
<Image
#barcodeImg
id="barcode-img"
height="500"
stretch="aspectFill"
class="text-center"
></Image>
<app-button text="Step 4: Print" type="text" (tap)="print()"></app-button>
<StackLayout #printArea>
<Label class="p-10 m-b-10" text="Backup Code: "></Label>
<Label class="p-10 m-b-10" [text]="code"></Label>
<Button
(tap)="generateBarcode()"
id="barcode"
text="Step 3: Generate Backup Code Page"
></Button>
<Image
#barcodeImg
id="barcode-img"
height="500"
stretch="aspectFill"
class="text-center"
></Image>
<app-button text="Step 4: Print" type="text" (tap)="print()"></app-button>
</StackLayout>
import { Component, Input, ViewChild } from "@angular/core";
import { Component, Input, ViewChild, ElementRef } from "@angular/core";
import { Printer } from "nativescript-printer";
import { Image } from "tns-core-modules/ui/image";
......
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