Commit 528a2c33 authored by dev0tion's avatar dev0tion

Prepare new validator for send amount

parent fd03947a
......@@ -40,6 +40,7 @@ export class SendComponent implements OnInit {
this.sendForm = this.fb.group({
"address": ["", Validators.required],
"amount": ["", Validators.compose([Validators.required, Validators.pattern(/^[0-9]+(\.[0-9]{0,8})?$/)])],
//"amount": ["", Validators.compose([Validators.required, Validators.pattern(/^([0-9]+)?(\.[0-9]{0,8})?$/)])],
"fee": ["medium", Validators.required],
"password": ["", Validators.required]
});
......@@ -206,5 +207,6 @@ export class SendComponent implements OnInit {
private openConfirmationModal() {
const modalRef = this.modalService.open(SendConfirmationComponent);
modalRef.componentInstance.transaction = this.transaction;
modalRef.componentInstance.transactionFee = this.estimatedFee;
}
}
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