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
ebd028f3
Commit
ebd028f3
authored
Apr 11, 2017
by
dev0tion
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use login component instead of wallet status
parent
1712da38
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
19 deletions
+20
-19
app.component.ts
Breeze.UI/src/app/app.component.ts
+20
-19
No files found.
Breeze.UI/src/app/app.component.ts
View file @
ebd028f3
...
@@ -15,25 +15,26 @@ export class AppComponent implements OnInit {
...
@@ -15,25 +15,26 @@ export class AppComponent implements OnInit {
private
responseMessage
:
any
;
private
responseMessage
:
any
;
ngOnInit
()
{
ngOnInit
()
{
this
.
checkWalletStatus
();
this
.
router
.
navigate
([
'/login'
]);
//this.checkWalletStatus();
}
}
private
checkWalletStatus
(){
//
private checkWalletStatus(){
this
.
apiService
.
getWalletStatus
()
//
this.apiService.getWalletStatus()
.
subscribe
(
//
.subscribe(
response
=>
{
//
response => {
if
(
response
.
status
>=
200
&&
response
.
status
<
400
)
{
//
if (response.status >= 200 && response.status < 400) {
this
.
responseMessage
=
response
;
//
this.responseMessage = response;
this
.
router
.
navigate
([
'/login'
]);
//
this.router.navigate(['/login']);
}
//
}
},
//
},
error
=>
{
//
error => {
this
.
errorMessage
=
<
any
>
error
;
//
this.errorMessage = <any>error;
if
(
error
.
status
===
400
||
error
.
status
===
404
)
{
//
if (error.status === 400 || error.status === 404) {
this
.
router
.
navigate
([
'/setup'
]);
//
this.router.navigate(['/setup']);
console
.
log
(
this
.
errorMessage
);
//
console.log(this.errorMessage);
}
//
}
}
//
}
);
//
);
}
//
}
}
}
\ No newline at end of file
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