Ignore:
Timestamp:
11/01/20 00:55:08 (4 years ago)
Author:
Mile Jankuloski <mile.jankuloski@…>
Branches:
master
Children:
d23bf72
Parents:
993189e
Message:

Jwt token auth interceptors, services and guards

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Farmatiko/ClientApp/src/app/dashboard/dashboard.component.ts

    r993189e r1f4846d  
    33import { MatSnackBar, MatSnackBarRef, SimpleSnackBar } from '@angular/material/snack-bar';
    44import { IPharmacy, IMedicine, IPharmacyHead, IPharmacyHeadRequest } from '../shared/interfaces';
    5 import { DataService } from '../shared/data.service';
     5import { DataService } from '../shared/services/data.service';
    66import { PharmacyDialogComponent } from '../dialogs/pharmacy-dialog/pharmacy-dialog.component';
    77import { EditPharmacyDialogComponent } from '../dialogs/edit-pharmacy-dialog/edit-pharmacy-dialog.component';
    88import { MedicineDialogComponent } from '../dialogs/medicine-dialog/medicine-dialog.component';
    99import { ActivatedRoute, Router } from '@angular/router';
    10 import { AuthService } from '../shared/auth.service';
     10import { AuthService } from '../shared/services/auth.service';
    1111
    1212@Component({
     
    2727
    2828  ngOnInit(): void {
    29     this.head = this.authService.headValue;
     29    this.authService.getUser().subscribe((data : IPharmacyHead) => {
     30        this.head = data;
     31    });
    3032    this.dataService.getPharmacies()
    3133        .subscribe((pharmacy: IPharmacy[]) => {
Note: See TracChangeset for help on using the changeset viewer.