Issue fixing + deletion of profile & logo
This commit is contained in:
@@ -23,6 +23,7 @@ export class HeaderComponent {
|
||||
user$: Observable<KeycloakUser>;
|
||||
user: KeycloakUser;
|
||||
public tabItems: MenuItem[];
|
||||
public loginItems: MenuItem[];
|
||||
public menuItems: MenuItem[];
|
||||
activeItem;
|
||||
faUserGear = faUserGear;
|
||||
@@ -87,22 +88,31 @@ export class HeaderComponent {
|
||||
{
|
||||
label: 'Businesses for Sale',
|
||||
routerLink: '/businessListings',
|
||||
state: {},
|
||||
},
|
||||
{
|
||||
label: 'Commercial Property',
|
||||
routerLink: '/commercialPropertyListings',
|
||||
state: {},
|
||||
},
|
||||
{
|
||||
label: 'Professionals/Brokers Directory',
|
||||
routerLink: '/brokerListings',
|
||||
state: {},
|
||||
},
|
||||
];
|
||||
|
||||
this.loginItems = [
|
||||
{
|
||||
label: 'Login',
|
||||
command: () => this.login(),
|
||||
visible: !this.isUserLogedIn(),
|
||||
},
|
||||
{
|
||||
label: 'Register',
|
||||
command: () => this.register(),
|
||||
visible: !this.isUserLogedIn(),
|
||||
},
|
||||
];
|
||||
this.activeItem = this.tabItems[0];
|
||||
}
|
||||
|
||||
navigateWithState(dest: string, state: any) {
|
||||
this.router.navigate([dest], { state: state });
|
||||
}
|
||||
@@ -112,4 +122,7 @@ export class HeaderComponent {
|
||||
login() {
|
||||
this.userService.login(window.location.href);
|
||||
}
|
||||
register() {
|
||||
this.userService.register(`${window.location.origin}/account`);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user