From efb5193b2162ef516288789704441b2214cae4fa Mon Sep 17 00:00:00 2001 From: Derek Holloway Date: Wed, 30 Jul 2025 17:34:32 -0700 Subject: [PATCH] Add a developmental login button --- .vscode/tasks.json | 1 + src/Client/src/app/app.html | 10 ++++++++-- src/Client/src/app/app.ts | 6 ++++++ 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 1866296..8aa7b2c 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -22,6 +22,7 @@ }, "args": [ "build", + "--configuration=development", "--base-href=http://localhost:5000" ], "problemMatcher": "$msCompile" diff --git a/src/Client/src/app/app.html b/src/Client/src/app/app.html index 70d5048..dbdba2d 100644 --- a/src/Client/src/app/app.html +++ b/src/Client/src/app/app.html @@ -3,17 +3,23 @@ HOME JOB BOARD RESUMES + COMPANIES
- +
+ + + + + - +
diff --git a/src/Client/src/app/app.ts b/src/Client/src/app/app.ts index bcba189..2976021 100644 --- a/src/Client/src/app/app.ts +++ b/src/Client/src/app/app.ts @@ -3,6 +3,7 @@ import { Router, RouterModule, RouterOutlet, ActivatedRoute } from '@angular/rou import { Authentication } from './services/Authentication'; import { CommonModule, Location } from '@angular/common'; import { HttpClient } from '@angular/common/http'; +import { isDevMode } from '@angular/core'; @Component({ selector: 'app-root', @@ -16,7 +17,12 @@ export class App { @ViewChild('jobsLink') jobLink!: ElementRef; @ViewChild('resumesLink') resumeLink!: ElementRef; + devMode: boolean = false; + constructor( private http: HttpClient, public auth: Authentication, private router: Router, private route: ActivatedRoute, private location: Location){ + + this.devMode = isDevMode(); + this.route.queryParams.subscribe(params => { const loginToken = params['LoginToken'];