|
|
|
|
@ -33,6 +33,7 @@ export class AppComponent implements OnInit, AfterViewInit {
|
|
|
|
|
DeviceType: string; DeviceToken: string; //this.deviceToken
|
|
|
|
|
};
|
|
|
|
|
user: boolean;
|
|
|
|
|
TeamFlag :string = "false";
|
|
|
|
|
constructor(
|
|
|
|
|
public ts: TranslatorService,
|
|
|
|
|
private cs: CommonService,
|
|
|
|
|
@ -55,7 +56,7 @@ export class AppComponent implements OnInit, AfterViewInit {
|
|
|
|
|
}
|
|
|
|
|
ngOnInit() {
|
|
|
|
|
this.initializeApp();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
ngAfterViewInit() {}
|
|
|
|
|
initializeApp() {
|
|
|
|
|
@ -107,6 +108,11 @@ export class AppComponent implements OnInit, AfterViewInit {
|
|
|
|
|
this.events.subscribe("getNotCount", badge => {
|
|
|
|
|
this.notBadge = badge;
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
this.events.subscribe('myTeamFlag', myTeamFlag => {
|
|
|
|
|
this.TeamFlag = myTeamFlag;
|
|
|
|
|
});
|
|
|
|
|
console.log("this.TeamFlag>>>>>>>>>"+ this.TeamFlag);
|
|
|
|
|
}
|
|
|
|
|
private initializeDirection() {
|
|
|
|
|
this.direction = TranslatorService.getCurrentDirection();
|
|
|
|
|
@ -131,6 +137,12 @@ export class AppComponent implements OnInit, AfterViewInit {
|
|
|
|
|
this.menu.toggle();
|
|
|
|
|
this.cs.openLogin();
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
openMyTeamPage() {
|
|
|
|
|
this.menu.toggle();
|
|
|
|
|
this.cs.openMyTeamPage();
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
// profile() {
|
|
|
|
|
// this.cs.openProfile();
|
|
|
|
|
|