feat: bypass login check

parent 4df64223
......@@ -264,7 +264,7 @@ export class AppService implements OnInit {
checklogin() {
this._logger.log('service.ts:AppService,checklogin');
if (DataStore.Path) {
if (DataStore.Path['name'] === 'FOF' || DataStore.Path['name'] === 'Forgot') {
if (document.location.pathname === '/luna/connect') {
} else {
if (User.logined) {
if (document.location.pathname === '/login') {
......@@ -273,8 +273,6 @@ export class AppService implements OnInit {
this._router.navigate([document.location.pathname]);
}
// jQuery('angular2').show();
} else if (document.location.pathname === '/luna/connect') {
User.logined = true;
} else {
this._http.get_user_profile()
.subscribe(
......
......@@ -39,12 +39,6 @@ export class ElementNavComponent implements OnInit {
}
ngOnInit() {
this.ChangeLanWarningDialog = this._dialog.open(
ChangLanWarningDialogComponent,
{
height: '200px',
width: '300px',
});
}
click(event) {
......@@ -105,6 +99,12 @@ export class ElementNavComponent implements OnInit {
break;
}
case 'English': {
this.ChangeLanWarningDialog = this._dialog.open(
ChangLanWarningDialogComponent,
{
height: '200px',
width: '300px',
});
this.ChangeLanWarningDialog.afterClosed().subscribe(
result => {
if (result) {
......@@ -114,6 +114,12 @@ export class ElementNavComponent implements OnInit {
break;
}
case 'Chinese': {
this.ChangeLanWarningDialog = this._dialog.open(
ChangLanWarningDialogComponent,
{
height: '200px',
width: '300px',
});
this.ChangeLanWarningDialog.afterClosed().subscribe(
result => {
if (result) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment