From 9235cb0f222ee36304ca2c8dab24b808022b121f Mon Sep 17 00:00:00 2001 From: Andreas Knuth Date: Sat, 5 Apr 2025 12:22:17 +0200 Subject: [PATCH] changes to old client --- bizmatch/package.json | 4 +- .../components/header/header.component.html | 31 ++++------- .../app/components/header/header.component.ts | 3 + .../login-register.component.ts | 2 + .../src/app/pages/home/home.component.html | 55 +++++++++++-------- .../src/app/pages/home/home.component.scss | 40 ++++++++++++++ bizmatch/src/app/pages/home/home.component.ts | 36 ++++++------ .../account/account.component.html | 10 ++-- .../subscription/account/account.component.ts | 32 ----------- .../edit-business-listing.component.html | 2 +- bizmatch/src/styles.scss | 18 ------ 11 files changed, 112 insertions(+), 121 deletions(-) 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 @@
  • } - -