A few more animations

Fix currency prefix issue
This commit is contained in:
2021-01-02 15:02:51 +01:00
parent b2043e1546
commit e21531dec0
9 changed files with 93 additions and 14 deletions

View File

@@ -1,3 +1,4 @@
import { getCurrencySymbol } from '@angular/common';
import { Component, OnInit } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
@@ -39,6 +40,10 @@ export class PaymentComponent implements OnInit {
this.backend.setPaymentMethod(coin);
}
currencyPrefix(): string {
return getCurrencySymbol(this.backend.invoice.currency, 'narrow');
}
async get(): Promise<void> {
await this.backend.setInvoice(this.paymentSelector);
this.backend.getConfirmation().catch();