1
|
import {Component, Inject, OnInit} from '@angular/core';
|
2
|
import {MAT_DIALOG_DATA, MatDialogRef} from '@angular/material';
|
3
|
import {UserProfile} from '../../models/user.model';
|
4
|
import {Calendar} from '../../models/calendar.model';
|
5
|
|
6
|
@Component({
|
7
|
selector: 'app-user-profile',
|
8
|
templateUrl: './user-profile-dialog.component.html',
|
9
|
styleUrls: ['./user-profile-dialog.component.sass']
|
10
|
})
|
11
|
export class UserProfileDialogComponent implements OnInit {
|
12
|
|
13
|
constructor(
|
14
|
public dialogRef: MatDialogRef<UserProfileDialogComponent>,
|
15
|
@Inject(MAT_DIALOG_DATA) public data: UserProfileDialogData
|
16
|
) { }
|
17
|
|
18
|
ngOnInit() {
|
19
|
}
|
20
|
|
21
|
onCloseClick(): void {
|
22
|
this.dialogRef.close({
|
23
|
isConfirmed: false
|
24
|
});
|
25
|
}
|
26
|
}
|
27
|
|
28
|
export class UserProfileDialogData {
|
29
|
profile: UserProfile;
|
30
|
calendar: Calendar[];
|
31
|
}
|