Prototype accelerate checkout properties
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
import { Component, OnInit, OnDestroy } from '@angular/core';
|
||||
import { Component, OnInit, OnDestroy, Output, EventEmitter, Input } from '@angular/core';
|
||||
import { Transaction } from '../../interfaces/electrs.interface';
|
||||
import { MempoolPosition } from '../../interfaces/node-api.interface';
|
||||
|
||||
@Component({
|
||||
selector: 'app-accelerate-checkout',
|
||||
@@ -6,6 +8,10 @@ import { Component, OnInit, OnDestroy } from '@angular/core';
|
||||
styleUrls: ['./accelerate-checkout.component.scss']
|
||||
})
|
||||
export class AccelerateCheckout implements OnInit, OnDestroy {
|
||||
@Input() tx: Transaction ;
|
||||
@Input() eta: number;
|
||||
@Output() close = new EventEmitter<null>();
|
||||
|
||||
constructor() {
|
||||
}
|
||||
|
||||
@@ -14,4 +20,9 @@ export class AccelerateCheckout implements OnInit, OnDestroy {
|
||||
|
||||
ngOnDestroy() {
|
||||
}
|
||||
|
||||
closeModal(): void {
|
||||
console.log('close modal')
|
||||
this.close.emit();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user