Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
Breeze
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DeStream-public
Breeze
Commits
21c53d41
Commit
21c53d41
authored
Jul 11, 2017
by
dev0tion
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve send component error handling
parent
dc3007c5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
send.component.ts
Breeze.UI/src/app/wallet/send/send.component.ts
+3
-2
No files found.
Breeze.UI/src/app/wallet/send/send.component.ts
View file @
21c53d41
...
@@ -26,7 +26,7 @@ export class SendComponent {
...
@@ -26,7 +26,7 @@ export class SendComponent {
private
buildSendForm
():
void
{
private
buildSendForm
():
void
{
this
.
sendForm
=
this
.
fb
.
group
({
this
.
sendForm
=
this
.
fb
.
group
({
"address"
:
[
""
,
Validators
.
required
],
"address"
:
[
""
,
Validators
.
required
],
"amount"
:
[
""
,
Validators
.
required
],
"amount"
:
[
""
,
Validators
.
compose
([
Validators
.
required
,
Validators
.
pattern
(
/^
[
0-9
]
+
(\.[
0-9
]{0,8})?
$/
)])
],
"fee"
:
[
2
,
Validators
.
required
],
"fee"
:
[
2
,
Validators
.
required
],
"password"
:
[
""
,
Validators
.
required
]
"password"
:
[
""
,
Validators
.
required
]
});
});
...
@@ -64,7 +64,8 @@ export class SendComponent {
...
@@ -64,7 +64,8 @@ export class SendComponent {
'required'
:
'An address is required.'
'required'
:
'An address is required.'
},
},
'amount'
:
{
'amount'
:
{
'required'
:
'An amount is required.'
'required'
:
'An amount is required.'
,
'pattern'
:
'Enter a valid amount. Only positive numbers are allowed.'
},
},
'fee'
:
{
'fee'
:
{
'required'
:
'A fee is required.'
'required'
:
'A fee is required.'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment