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
685da94a
Commit
685da94a
authored
Apr 10, 2017
by
dev0tion
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Temporary catch all statuses
parent
3fa0b4c1
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
13 additions
and
13 deletions
+13
-13
app.component.ts
Breeze.UI/src/app/app.component.ts
+1
-1
login.component.ts
Breeze.UI/src/app/login/login.component.ts
+2
-2
create.component.ts
Breeze.UI/src/app/setup/create/create.component.ts
+2
-2
recover.component.ts
Breeze.UI/src/app/setup/recover/recover.component.ts
+2
-2
history.component.ts
Breeze.UI/src/app/wallet/history/history.component.ts
+2
-2
dashboard.component.ts
Breeze.UI/src/app/wallet/menu/dashboard.component.ts
+2
-2
receive.component.ts
Breeze.UI/src/app/wallet/receive/receive.component.ts
+2
-2
No files found.
Breeze.UI/src/app/app.component.ts
View file @
685da94a
...
@@ -22,7 +22,7 @@ export class AppComponent implements OnInit {
...
@@ -22,7 +22,7 @@ export class AppComponent implements OnInit {
this
.
apiService
.
getWalletStatus
()
this
.
apiService
.
getWalletStatus
()
.
subscribe
(
.
subscribe
(
response
=>
{
response
=>
{
if
(
response
.
status
===
2
00
)
{
if
(
response
.
status
>=
200
&&
response
.
status
<
4
00
)
{
this
.
responseMessage
=
response
;
this
.
responseMessage
=
response
;
this
.
router
.
navigate
([
'/login'
]);
this
.
router
.
navigate
([
'/login'
]);
}
}
...
...
Breeze.UI/src/app/login/login.component.ts
View file @
685da94a
...
@@ -27,14 +27,14 @@ export class LoginComponent implements OnInit {
...
@@ -27,14 +27,14 @@ export class LoginComponent implements OnInit {
this
.
apiService
.
loadWallet
(
this
.
walletLoad
)
this
.
apiService
.
loadWallet
(
this
.
walletLoad
)
.
subscribe
(
.
subscribe
(
response
=>
{
response
=>
{
if
(
response
.
status
===
2
00
)
{
if
(
response
.
status
>=
200
&&
response
.
status
<
4
00
)
{
this
.
responseMessage
=
response
;
this
.
responseMessage
=
response
;
this
.
router
.
navigate
[
'/wallet'
]
this
.
router
.
navigate
[
'/wallet'
]
}
}
},
},
error
=>
{
error
=>
{
this
.
errorMessage
=
<
any
>
error
;
this
.
errorMessage
=
<
any
>
error
;
if
(
error
.
status
>
400
)
{
if
(
error
.
status
>
=
400
)
{
alert
(
this
.
errorMessage
);
alert
(
this
.
errorMessage
);
console
.
log
(
this
.
errorMessage
);
console
.
log
(
this
.
errorMessage
);
}
}
...
...
Breeze.UI/src/app/setup/create/create.component.ts
View file @
685da94a
...
@@ -30,12 +30,12 @@ export class CreateComponent {
...
@@ -30,12 +30,12 @@ export class CreateComponent {
.
createWallet
(
this
.
newWallet
)
.
createWallet
(
this
.
newWallet
)
.
subscribe
(
.
subscribe
(
response
=>
{
response
=>
{
if
(
response
.
status
===
2
00
){
if
(
response
.
status
>=
200
&&
response
.
status
<
4
00
){
this
.
responseMessage
=
response
;
this
.
responseMessage
=
response
;
}
}
},
},
error
=>
{
error
=>
{
if
(
error
.
status
>
400
)
{
if
(
error
.
status
>
=
400
)
{
this
.
errorMessage
=
error
;
this
.
errorMessage
=
error
;
console
.
log
(
this
.
errorMessage
);
console
.
log
(
this
.
errorMessage
);
}
}
...
...
Breeze.UI/src/app/setup/recover/recover.component.ts
View file @
685da94a
...
@@ -31,12 +31,12 @@ export class RecoverComponent implements OnInit {
...
@@ -31,12 +31,12 @@ export class RecoverComponent implements OnInit {
.
recoverWallet
(
this
.
walletRecovery
)
.
recoverWallet
(
this
.
walletRecovery
)
.
subscribe
(
.
subscribe
(
response
=>
{
response
=>
{
if
(
response
.
status
===
2
00
)
{
if
(
response
.
status
>=
200
&&
response
.
status
<
4
00
)
{
this
.
responseMessage
=
response
;
this
.
responseMessage
=
response
;
}
}
},
},
error
=>
{
error
=>
{
if
(
error
.
status
>
400
)
{
if
(
error
.
status
>=
400
)
{
this
.
errorMessage
=
error
;
this
.
errorMessage
=
error
;
console
.
log
(
this
.
errorMessage
);
console
.
log
(
this
.
errorMessage
);
}
}
...
...
Breeze.UI/src/app/wallet/history/history.component.ts
View file @
685da94a
...
@@ -22,12 +22,12 @@ export class HistoryComponent {
...
@@ -22,12 +22,12 @@ export class HistoryComponent {
this
.
apiService
.
getWalletHistory
()
this
.
apiService
.
getWalletHistory
()
.
subscribe
(
.
subscribe
(
response
=>
{
response
=>
{
if
(
response
.
status
===
2
00
)
{
if
(
response
.
status
>=
200
&&
response
.
status
<
4
00
)
{
this
.
transactions
=
response
.
history
;
this
.
transactions
=
response
.
history
;
}
}
},
},
error
=>
{
error
=>
{
if
(
error
.
status
==
=
400
)
{
if
(
error
.
status
>
=
400
)
{
this
.
errorMessage
=
<
any
>
error
;
this
.
errorMessage
=
<
any
>
error
;
console
.
log
(
this
.
errorMessage
);
console
.
log
(
this
.
errorMessage
);
}
}
...
...
Breeze.UI/src/app/wallet/menu/dashboard.component.ts
View file @
685da94a
...
@@ -22,14 +22,14 @@ export class DashboardComponent {
...
@@ -22,14 +22,14 @@ export class DashboardComponent {
this
.
apiService
.
getWalletBalance
()
this
.
apiService
.
getWalletBalance
()
.
subscribe
(
.
subscribe
(
response
=>
{
response
=>
{
if
(
response
.
status
===
2
00
)
{
if
(
response
.
status
>=
200
&&
response
.
status
<
4
00
)
{
this
.
balanceResponse
=
response
this
.
balanceResponse
=
response
this
.
confirmedBalance
=
this
.
balanceResponse
.
confirmed
;
this
.
confirmedBalance
=
this
.
balanceResponse
.
confirmed
;
this
.
unconfirmedBalance
=
this
.
balanceResponse
.
unconfirmed
;
this
.
unconfirmedBalance
=
this
.
balanceResponse
.
unconfirmed
;
}
}
},
},
error
=>
{
error
=>
{
if
(
error
.
status
>
400
)
{
if
(
error
.
status
>
=
400
)
{
this
.
errorMessage
=
<
any
>
error
;
this
.
errorMessage
=
<
any
>
error
;
console
.
log
(
this
.
errorMessage
);
console
.
log
(
this
.
errorMessage
);
}
}
...
...
Breeze.UI/src/app/wallet/receive/receive.component.ts
View file @
685da94a
...
@@ -22,12 +22,12 @@ export class ReceiveComponent {
...
@@ -22,12 +22,12 @@ export class ReceiveComponent {
this
.
apiService
.
getUnusedReceiveAddresses
()
this
.
apiService
.
getUnusedReceiveAddresses
()
.
subscribe
(
.
subscribe
(
response
=>
{
response
=>
{
if
(
response
.
status
===
2
00
)
{
if
(
response
.
status
>=
200
&&
response
.
status
<
4
00
)
{
this
.
addresses
=
response
.
addresses
;
this
.
addresses
=
response
.
addresses
;
}
}
},
},
error
=>
{
error
=>
{
if
(
error
.
status
>
400
)
{
if
(
error
.
status
>
=
400
)
{
this
.
errorMessage
=
<
any
>
error
;
this
.
errorMessage
=
<
any
>
error
;
console
.
log
(
this
.
errorMessage
);
console
.
log
(
this
.
errorMessage
);
}
}
...
...
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