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
ace1d9cb
Commit
ace1d9cb
authored
Jun 29, 2017
by
dev0tion
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use error description instead of message
parent
c35b3160
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
14 additions
and
8 deletions
+14
-8
create.component.ts
Breeze.UI/src/app/setup/create/create.component.ts
+2
-1
recover.component.ts
Breeze.UI/src/app/setup/recover/recover.component.ts
+2
-1
dashboard.component.ts
Breeze.UI/src/app/wallet/dashboard/dashboard.component.ts
+4
-3
history.component.ts
Breeze.UI/src/app/wallet/history/history.component.ts
+2
-1
receive.component.ts
Breeze.UI/src/app/wallet/receive/receive.component.ts
+2
-1
send.component.ts
Breeze.UI/src/app/wallet/send/send.component.ts
+2
-1
No files found.
Breeze.UI/src/app/setup/create/create.component.ts
View file @
ace1d9cb
...
@@ -98,6 +98,7 @@ export class CreateComponent {
...
@@ -98,6 +98,7 @@ export class CreateComponent {
}
}
},
},
error
=>
{
error
=>
{
console
.
log
(
error
);
if
(
error
.
status
===
0
)
{
if
(
error
.
status
===
0
)
{
alert
(
"Something went wrong while connecting to the API. Please restart the application."
);
alert
(
"Something went wrong while connecting to the API. Please restart the application."
);
}
else
if
(
error
.
status
>=
400
)
{
}
else
if
(
error
.
status
>=
400
)
{
...
@@ -105,7 +106,7 @@ export class CreateComponent {
...
@@ -105,7 +106,7 @@ export class CreateComponent {
console
.
log
(
error
);
console
.
log
(
error
);
}
}
else
{
else
{
alert
(
error
.
json
().
errors
[
0
].
message
);
alert
(
error
.
json
().
errors
[
0
].
description
);
}
}
}
}
}
}
...
...
Breeze.UI/src/app/setup/recover/recover.component.ts
View file @
ace1d9cb
...
@@ -112,6 +112,7 @@ export class RecoverComponent implements OnInit {
...
@@ -112,6 +112,7 @@ export class RecoverComponent implements OnInit {
}
}
},
},
error
=>
{
error
=>
{
console
.
log
(
error
);
if
(
error
.
status
===
0
)
{
if
(
error
.
status
===
0
)
{
alert
(
"Something went wrong while connecting to the API. Please restart the application."
);
alert
(
"Something went wrong while connecting to the API. Please restart the application."
);
}
else
if
(
error
.
status
>=
400
)
{
}
else
if
(
error
.
status
>=
400
)
{
...
@@ -119,7 +120,7 @@ export class RecoverComponent implements OnInit {
...
@@ -119,7 +120,7 @@ export class RecoverComponent implements OnInit {
console
.
log
(
error
);
console
.
log
(
error
);
}
}
else
{
else
{
alert
(
error
.
json
().
errors
[
0
].
message
);
alert
(
error
.
json
().
errors
[
0
].
description
);
}
}
}
}
}
}
...
...
Breeze.UI/src/app/wallet/dashboard/dashboard.component.ts
View file @
ace1d9cb
...
@@ -10,7 +10,6 @@ import { ReceiveComponent } from '../receive/receive.component';
...
@@ -10,7 +10,6 @@ import { ReceiveComponent } from '../receive/receive.component';
import
{
Observable
}
from
'rxjs/Rx'
;
import
{
Observable
}
from
'rxjs/Rx'
;
import
{
Subscription
}
from
'rxjs/Subscription'
;
import
{
Subscription
}
from
'rxjs/Subscription'
;
import
'rxjs/add/operator/first'
;
@
Component
({
@
Component
({
selector
:
'dashboard-component'
,
selector
:
'dashboard-component'
,
...
@@ -57,6 +56,7 @@ export class DashboardComponent {
...
@@ -57,6 +56,7 @@ export class DashboardComponent {
}
}
},
},
error
=>
{
error
=>
{
console
.
log
(
error
);
if
(
error
.
status
===
0
)
{
if
(
error
.
status
===
0
)
{
alert
(
"Something went wrong while connecting to the API. Please restart the application."
);
alert
(
"Something went wrong while connecting to the API. Please restart the application."
);
}
else
if
(
error
.
status
>=
400
)
{
}
else
if
(
error
.
status
>=
400
)
{
...
@@ -64,7 +64,7 @@ export class DashboardComponent {
...
@@ -64,7 +64,7 @@ export class DashboardComponent {
console
.
log
(
error
);
console
.
log
(
error
);
}
}
else
{
else
{
alert
(
error
.
json
().
errors
[
0
].
message
);
alert
(
error
.
json
().
errors
[
0
].
description
);
}
}
}
}
}
}
...
@@ -84,6 +84,7 @@ export class DashboardComponent {
...
@@ -84,6 +84,7 @@ export class DashboardComponent {
}
}
},
},
error
=>
{
error
=>
{
console
.
log
(
error
);
if
(
error
.
status
===
0
)
{
if
(
error
.
status
===
0
)
{
alert
(
"Something went wrong while connecting to the API. Please restart the application."
);
alert
(
"Something went wrong while connecting to the API. Please restart the application."
);
}
else
if
(
error
.
status
>=
400
)
{
}
else
if
(
error
.
status
>=
400
)
{
...
@@ -91,7 +92,7 @@ export class DashboardComponent {
...
@@ -91,7 +92,7 @@ export class DashboardComponent {
console
.
log
(
error
);
console
.
log
(
error
);
}
}
else
{
else
{
alert
(
error
.
json
().
errors
[
0
].
message
);
alert
(
error
.
json
().
errors
[
0
].
description
);
}
}
}
}
}
}
...
...
Breeze.UI/src/app/wallet/history/history.component.ts
View file @
ace1d9cb
...
@@ -41,6 +41,7 @@ export class HistoryComponent {
...
@@ -41,6 +41,7 @@ export class HistoryComponent {
}
}
},
},
error
=>
{
error
=>
{
console
.
log
(
error
);
if
(
error
.
status
===
0
)
{
if
(
error
.
status
===
0
)
{
alert
(
"Something went wrong while connecting to the API. Please restart the application."
);
alert
(
"Something went wrong while connecting to the API. Please restart the application."
);
}
else
if
(
error
.
status
>=
400
)
{
}
else
if
(
error
.
status
>=
400
)
{
...
@@ -48,7 +49,7 @@ export class HistoryComponent {
...
@@ -48,7 +49,7 @@ export class HistoryComponent {
console
.
log
(
error
);
console
.
log
(
error
);
}
}
else
{
else
{
alert
(
error
.
json
().
errors
[
0
].
message
);
alert
(
error
.
json
().
errors
[
0
].
description
);
}
}
}
}
}
}
...
...
Breeze.UI/src/app/wallet/receive/receive.component.ts
View file @
ace1d9cb
...
@@ -33,6 +33,7 @@ export class ReceiveComponent {
...
@@ -33,6 +33,7 @@ export class ReceiveComponent {
}
}
},
},
error
=>
{
error
=>
{
console
.
log
(
error
);
if
(
error
.
status
===
0
)
{
if
(
error
.
status
===
0
)
{
alert
(
"Something went wrong while connecting to the API. Please restart the application."
);
alert
(
"Something went wrong while connecting to the API. Please restart the application."
);
}
else
if
(
error
.
status
>=
400
)
{
}
else
if
(
error
.
status
>=
400
)
{
...
@@ -40,7 +41,7 @@ export class ReceiveComponent {
...
@@ -40,7 +41,7 @@ export class ReceiveComponent {
console
.
log
(
error
);
console
.
log
(
error
);
}
}
else
{
else
{
alert
(
error
.
json
().
errors
[
0
].
message
);
alert
(
error
.
json
().
errors
[
0
].
description
);
}
}
}
}
}
}
...
...
Breeze.UI/src/app/wallet/send/send.component.ts
View file @
ace1d9cb
...
@@ -132,6 +132,7 @@ export class SendComponent {
...
@@ -132,6 +132,7 @@ export class SendComponent {
}
}
},
},
error
=>
{
error
=>
{
console
.
log
(
error
);
if
(
error
.
status
===
0
)
{
if
(
error
.
status
===
0
)
{
alert
(
"Something went wrong while connecting to the API. Please restart the application."
);
alert
(
"Something went wrong while connecting to the API. Please restart the application."
);
}
else
if
(
error
.
status
>=
400
)
{
}
else
if
(
error
.
status
>=
400
)
{
...
@@ -139,7 +140,7 @@ export class SendComponent {
...
@@ -139,7 +140,7 @@ export class SendComponent {
console
.
log
(
error
);
console
.
log
(
error
);
}
}
else
{
else
{
alert
(
error
.
json
().
errors
[
0
].
message
);
alert
(
error
.
json
().
errors
[
0
].
description
);
}
}
}
}
}
}
...
...
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