From 29851537ebcf1459baa4bd9d3f657f790370694b Mon Sep 17 00:00:00 2001 From: Mononaut Date: Sat, 13 Apr 2024 09:05:05 +0000 Subject: [PATCH] Prototype accelerate checkout properties --- .../accelerate-checkout.component.html | 9 +++++++-- .../accelerate-checkout.component.scss | 5 +++++ .../accelerate-checkout.component.ts | 13 ++++++++++++- 3 files changed, 24 insertions(+), 3 deletions(-) diff --git a/frontend/src/app/components/accelerate-checkout/accelerate-checkout.component.html b/frontend/src/app/components/accelerate-checkout/accelerate-checkout.component.html index 6010fe47f..d6baf755d 100644 --- a/frontend/src/app/components/accelerate-checkout/accelerate-checkout.component.html +++ b/frontend/src/app/components/accelerate-checkout/accelerate-checkout.component.html @@ -21,10 +21,14 @@
- +
@@ -39,4 +43,5 @@
+ \ No newline at end of file diff --git a/frontend/src/app/components/accelerate-checkout/accelerate-checkout.component.scss b/frontend/src/app/components/accelerate-checkout/accelerate-checkout.component.scss index e69de29bb..617147221 100644 --- a/frontend/src/app/components/accelerate-checkout/accelerate-checkout.component.scss +++ b/frontend/src/app/components/accelerate-checkout/accelerate-checkout.component.scss @@ -0,0 +1,5 @@ +.close-button { + position: absolute; + top: 0.5em; + right: 0.5em; +} \ No newline at end of file diff --git a/frontend/src/app/components/accelerate-checkout/accelerate-checkout.component.ts b/frontend/src/app/components/accelerate-checkout/accelerate-checkout.component.ts index 0591e58a2..2de1aa34b 100644 --- a/frontend/src/app/components/accelerate-checkout/accelerate-checkout.component.ts +++ b/frontend/src/app/components/accelerate-checkout/accelerate-checkout.component.ts @@ -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(); + constructor() { } @@ -14,4 +20,9 @@ export class AccelerateCheckout implements OnInit, OnDestroy { ngOnDestroy() { } + + closeModal(): void { + console.log('close modal') + this.close.emit(); + } }