aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/app/_elements/navbar/navbar.component.ts
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src/app/_elements/navbar/navbar.component.ts')
-rw-r--r--frontend/src/app/_elements/navbar/navbar.component.ts13
1 files changed, 4 insertions, 9 deletions
diff --git a/frontend/src/app/_elements/navbar/navbar.component.ts b/frontend/src/app/_elements/navbar/navbar.component.ts
index d5d1744f..e2551f7a 100644
--- a/frontend/src/app/_elements/navbar/navbar.component.ts
+++ b/frontend/src/app/_elements/navbar/navbar.component.ts
@@ -1,30 +1,26 @@
-import { Component, OnInit } from '@angular/core';
+import { Component, OnInit, ViewEncapsulation } from '@angular/core';
import { Location } from '@angular/common';
import { AuthService } from '../../_services/auth.service';
import shared from 'src/app/Shared';
import { UserInfoService } from 'src/app/_services/user-info.service';
import { MatDialog } from '@angular/material/dialog';
-import { SignalRService } from 'src/app/_services/signal-r.service';
@Component({
selector: 'app-navbar',
templateUrl: './navbar.component.html',
- styleUrls: ['./navbar.component.css']
+ styleUrls: ['./navbar.component.css'],
+ encapsulation: ViewEncapsulation.Emulated
})
export class NavbarComponent implements OnInit {
currentUrl: string;
shared = shared;
- constructor(public location: Location, private auth: AuthService, private userInfoService: UserInfoService, private matDialog: MatDialog, private signalRService: SignalRService) {
+ constructor(public location: Location, private auth: AuthService, private userInfoService: UserInfoService, private matDialog: MatDialog) {
shared.dialog = matDialog;
this.currentUrl = this.location.path();
this.location.onUrlChange(() => {
this.currentUrl = this.location.path();
- });
-
- this.auth.loggedInEvent.subscribe(_ => {
- this.signalRService.startConnection();
})
}
@@ -39,6 +35,5 @@ export class NavbarComponent implements OnInit {
logOut() {
this.auth.logOut();
- this.signalRService.stopConnection();
}
}