Commit 0e0da38d authored by Paul Herbert's avatar Paul Herbert

2100 - Breeze Updates for ICO: latest

parent 5e3ec797
<div class="container" style="border:1px solid lightgray; border-radius: 4px; padding:10px; position: absolute; left:100px; width:50%">
<div class="container" style="border:1px solid lightgray; border-radius: 4px; padding:10px; position: absolute; left:100px; width:65%">
<h4>ICO</h4>
<div style="margin-top:15px">
<div>
<label style="font-size:13px;margin-bottom:0px">Extended Public Key</label>
<label style="font-size:14px;margin-bottom:0px">Extended Public Key</label>
<div class="myAddress" *ngIf="extPubKeyLoadingState.success; else elseFeedback"><code style="overflow-wrap: break-word">{{ extPubKey }}</code></div>
<ng-template #elseFeedback>
<app-feedback [loading]="extPubKeyLoadingState.loading"
......@@ -10,5 +11,16 @@
[erroredText]="extPubKeyLoadingState.erroredText"></app-feedback>
</ng-template>
</div>
<div style="margin-top:20px">
<label style="font-size:14px;margin-bottom:1px">Generate Addresses</label>
<div class="input-group" style="width:55%; height:35px">
<input pattern="^[1-9]+$" type="number" class="form-control" placeholder="Number to generate..." style="border-radius: 0px">
<span class="input-group-btn">
<button class="btn btn-default" type="button">Go</button>
</span>
</div>
</div>
</div>
</div>
import { Component, OnDestroy } from '@angular/core';
import { Subscription } from 'rxJs/Subscription';
import { FormGroup, FormControl, Validators, FormBuilder } from '@angular/forms';
import { AdvancedService } from './../advanced.service';
import { LoadingState } from './loadingState';
......@@ -26,10 +27,6 @@ export class AdvancedIcoComponent implements OnDestroy {
return this._extPubKeyLoadingState;
}
ngOnDestroy() {
this.extPubKeySubs.unsubscribe();
}
private loadExtPubKey() {
this.extPubKeyLoadingState.loading = true;
this.extPubKeySubs = this.advancedService.getExtPubKey()
......@@ -40,4 +37,8 @@ export class AdvancedIcoComponent implements OnDestroy {
this._extPubKey = key;
this.extPubKeyLoadingState.loading = false;
}
ngOnDestroy() {
this.extPubKeySubs.unsubscribe();
}
}
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