login functionality done

This commit was merged in pull request #1.
This commit is contained in:
Kola92
2023-04-25 16:15:24 +01:00
parent c36c04def5
commit 09afab5c85
18 changed files with 996 additions and 829 deletions

View File

@@ -10,10 +10,15 @@ import { PaymentService } from "../../services/payment.service";
export class PaymentsComponent implements OnInit {
payments: PaymentModel[];
options: any;
companyLocalStorage: any;
constructor(private paymentService: PaymentService) {
this.companyLocalStorage = JSON.parse(
localStorage.getItem("companyData") || "{}"
);
this.paymentService
.getPaymentById(1)
.getPaymentById(this.companyLocalStorage.id)
.subscribe((payment: PaymentModel[]) => {
this.payments = payment;