2021-02-18 12:44:35 +01:00
|
|
|
import { Component, OnInit } from '@angular/core';
|
|
|
|
|
import { ModalController } from '@ionic/angular';
|
2021-05-21 15:34:45 +01:00
|
|
|
import { User } from 'src/app/models/user.model';
|
|
|
|
|
import { AuthService } from 'src/app/services/auth.service';
|
2021-02-18 12:44:35 +01:00
|
|
|
|
|
|
|
|
@Component({
|
|
|
|
|
selector: 'app-profile',
|
|
|
|
|
templateUrl: './profile.component.html',
|
|
|
|
|
styleUrls: ['./profile.component.scss'],
|
|
|
|
|
})
|
|
|
|
|
export class ProfileComponent implements OnInit {
|
|
|
|
|
|
2021-05-21 15:34:45 +01:00
|
|
|
loggeduser: User;
|
|
|
|
|
|
|
|
|
|
constructor(private modalController:ModalController,
|
|
|
|
|
private authService: AuthService) {
|
|
|
|
|
this.loggeduser = authService.ValidatedUser;
|
|
|
|
|
|
|
|
|
|
console.log(this.loggeduser.RoleDescription)
|
|
|
|
|
}
|
2021-02-18 12:44:35 +01:00
|
|
|
|
|
|
|
|
ngOnInit() {}
|
|
|
|
|
|
|
|
|
|
close(){
|
|
|
|
|
this.modalController.dismiss();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|