Issue fixing + deletion of profile & logo

This commit is contained in:
2024-05-17 14:50:50 -05:00
parent 0684b9534f
commit df4e2b00e2
23 changed files with 774 additions and 364 deletions

View File

@@ -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`);
}
}