aboutsummaryrefslogtreecommitdiff
path: root/ufund-ui/src/app/app.component.ts
diff options
context:
space:
mode:
authorsowgro <tpoke.ferrari@gmail.com>2025-03-26 15:38:46 -0400
committersowgro <tpoke.ferrari@gmail.com>2025-03-26 15:38:46 -0400
commitea13cf6ab3b71ff5e83fca876ec71fec1f7b00ae (patch)
tree4450553037eaec406d8e0bb2c3a4200b188f01ea /ufund-ui/src/app/app.component.ts
parent5f03e80712f7a18370b5118fde5327bde1b6fbbf (diff)
downloadJellySolutions-ea13cf6ab3b71ff5e83fca876ec71fec1f7b00ae.tar.gz
JellySolutions-ea13cf6ab3b71ff5e83fca876ec71fec1f7b00ae.tar.bz2
JellySolutions-ea13cf6ab3b71ff5e83fca876ec71fec1f7b00ae.zip
Make frontend work with the new backend checkout system
Diffstat (limited to 'ufund-ui/src/app/app.component.ts')
-rw-r--r--ufund-ui/src/app/app.component.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/ufund-ui/src/app/app.component.ts b/ufund-ui/src/app/app.component.ts
index 7dc8ffb..86717c4 100644
--- a/ufund-ui/src/app/app.component.ts
+++ b/ufund-ui/src/app/app.component.ts
@@ -1,7 +1,7 @@
import {Component, OnInit, Inject} from '@angular/core';
-import {UsersService} from './services/users.service';
import {BehaviorSubject} from 'rxjs';
import { DOCUMENT } from '@angular/common';
+import {AuthService} from './services/auth.service';
@Component({
selector: 'app-root',
@@ -14,16 +14,16 @@ export class AppComponent implements OnInit {
currentUser$: BehaviorSubject<string> = new BehaviorSubject<string>("Logged out.");
constructor(
- private userService: UsersService,
+ private authService: AuthService,
@Inject(DOCUMENT) private document: Document
) {}
reloadPage() {
this.document.defaultView?.location.reload();
- }
+ }
ngOnInit() {
- this.userService.getCurrentUserSubject().subscribe(r => {
+ this.authService.getCurrentUserSubject().subscribe(r => {
this.currentUser$?.next(r
? "Logged in as " + r.username
: "Logged out."