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
9f91e4ce
Commit
9f91e4ce
authored
Oct 13, 2017
by
Pieterjan Vanhoof
Committed by
GitHub
Oct 13, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #280 from stratisproject/design
Stop sending on error
parents
1ada87f5
fb2864ed
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
send.component.ts
Breeze.UI/src/app/wallet/send/send.component.ts
+2
-1
No files found.
Breeze.UI/src/app/wallet/send/send.component.ts
View file @
9f91e4ce
...
@@ -108,7 +108,7 @@ export class SendComponent implements OnInit {
...
@@ -108,7 +108,7 @@ export class SendComponent implements OnInit {
error
=>
{
error
=>
{
console
.
log
(
error
);
console
.
log
(
error
);
if
(
error
.
status
===
0
)
{
if
(
error
.
status
===
0
)
{
this
.
genericModalService
.
openModal
(
null
,
"Something went wrong while connecting to the API. Please restart the application."
);
this
.
genericModalService
.
openModal
(
null
,
null
);
}
else
if
(
error
.
status
>=
400
)
{
}
else
if
(
error
.
status
>=
400
)
{
if
(
!
error
.
json
().
errors
[
0
])
{
if
(
!
error
.
json
().
errors
[
0
])
{
console
.
log
(
error
);
console
.
log
(
error
);
...
@@ -146,6 +146,7 @@ export class SendComponent implements OnInit {
...
@@ -146,6 +146,7 @@ export class SendComponent implements OnInit {
},
},
error
=>
{
error
=>
{
console
.
log
(
error
);
console
.
log
(
error
);
this
.
isSending
=
false
;
if
(
error
.
status
===
0
)
{
if
(
error
.
status
===
0
)
{
this
.
genericModalService
.
openModal
(
null
,
null
);
this
.
genericModalService
.
openModal
(
null
,
null
);
}
else
if
(
error
.
status
>=
400
)
{
}
else
if
(
error
.
status
>=
400
)
{
...
...
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