diff --git a/bizmatch/package.json b/bizmatch/package.json
index 3da7020..c804241 100644
--- a/bizmatch/package.json
+++ b/bizmatch/package.json
@@ -3,7 +3,7 @@
"version": "0.0.1",
"scripts": {
"ng": "ng",
- "start": "ng serve --host 0.0.0.0 & http-server ../bizmatch-server",
+ "start": "ng serve --port=4300 --host 0.0.0.0 & http-server ../bizmatch-server",
"prebuild": "node version.js",
"build": "node version.js && ng build",
"build.dev": "node version.js && ng build --configuration dev --output-hashing=all",
@@ -77,4 +77,4 @@
"tailwindcss": "^3.4.4",
"typescript": "~5.4.5"
}
-}
+}
\ No newline at end of file
diff --git a/bizmatch/src/app/components/header/header.component.html b/bizmatch/src/app/components/header/header.component.html
index 849ac29..352b86a 100644
--- a/bizmatch/src/app/components/header/header.component.html
+++ b/bizmatch/src/app/components/header/header.component.html
@@ -63,27 +63,18 @@
Account
- @if((user.customerType==='professional' && user.customerSubType==='broker') || user.customerType==='seller' || (authService.isAdmin() | async)){
+ @if(isProfessional || (authService.isAdmin() | async) && user?.hasProfile){
- @if(user.customerType==='professional'){
Create Listing
- }@else {
- Create Listing
- }
-
-
- My Listings
}
- My Favorites
+ My Listings
- EMail Us
+ My Favorites
Logout
@@ -96,7 +87,7 @@
}
-
+
} @else {
@@ -135,11 +126,11 @@
-
Log In
-
-
+
-
}
-
+
diff --git a/bizmatch/src/app/components/header/header.component.ts b/bizmatch/src/app/components/header/header.component.ts
index 3d888d5..1cd8a67 100644
--- a/bizmatch/src/app/components/header/header.component.ts
+++ b/bizmatch/src/app/components/header/header.component.ts
@@ -135,6 +135,9 @@ export class HeaderComponent {
isActive(route: string): boolean {
return this.router.url === route;
}
+ isEmailUsUrl(): boolean {
+ return ['/emailUs'].includes(this.router.url);
+ }
isFilterUrl(): boolean {
return ['/businessListings', '/commercialPropertyListings', '/brokerListings'].includes(this.router.url);
}
diff --git a/bizmatch/src/app/components/login-register/login-register.component.ts b/bizmatch/src/app/components/login-register/login-register.component.ts
index f14d1e3..7d68e83 100644
--- a/bizmatch/src/app/components/login-register/login-register.component.ts
+++ b/bizmatch/src/app/components/login-register/login-register.component.ts
@@ -41,6 +41,7 @@ export class LoginRegisterComponent {
onSubmit(): void {
this.errorMessage = '';
if (this.isLoginMode) {
+ this.authService.clearRoleCache();
this.authService
.loginWithEmail(this.email, this.password)
.then(userCredential => {
@@ -81,6 +82,7 @@ export class LoginRegisterComponent {
// Login with Google
loginWithGoogle(): void {
this.errorMessage = '';
+ this.authService.clearRoleCache();
this.authService
.loginWithGoogle()
.then(userCredential => {
diff --git a/bizmatch/src/app/pages/home/home.component.html b/bizmatch/src/app/pages/home/home.component.html
index acb1410..f420900 100644
--- a/bizmatch/src/app/pages/home/home.component.html
+++ b/bizmatch/src/app/pages/home/home.component.html
@@ -12,6 +12,11 @@
Services
Location
Contact
+ @if(user){
+
Logout
+ }@else{
+
Log In
+ }
@@ -189,37 +199,36 @@
-
+
-
+
+
-
-
Visit Our Office
-
Our team of business brokers is ready to assist you at our Corpus Christi location.
-
-
BizMatch Headquarters
-
1001 Blucher Street
-
Corpus Christi, TX 78401
-
United States
-
Phone: (555) 123-4567
-
Email: info@bizmatch.net
+
+
+
Visit Our Office
+
Our team of business brokers is ready to assist you at our Corpus Christi location.
+
+
+
BizMatch Headquarters
+
1001 Blucher Street
+
Corpus Christi, TX 78401
+
United States
+
Phone: (555) 123-4567
+
Email: info@bizmatch.net
+
-
-
-
-
-
+
+
- }@else{
-
- } @if (isProfessional){
+ }
+
+ @if (isProfessional){