source: Farmatiko/ClientApp/src/app/dialogs/worker-dialog/worker-dialog.component.ts@ ac51326

Last change on this file since ac51326 was 28d7d35, checked in by Mile Jankuloski <mile.jankuloski@…>, 4 years ago

Maps, geolocation api, dialogs & more

  • Property mode set to 100644
File size: 729 bytes
Line 
1import { Component, OnInit, Inject } from '@angular/core';
2import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';
3import { IHealthcareWorkers } from '../../shared/interfaces';
4
5@Component({
6 selector: 'app-worker-dialog',
7 templateUrl: './worker-dialog.component.html',
8 styleUrls: ['./worker-dialog.component.css']
9})
10export class WorkerDialogComponent implements OnInit {
11 worker: IHealthcareWorkers;
12 isExpanded: boolean = false;
13
14 constructor(private dialogRef: MatDialogRef<WorkerDialogComponent>, @Inject(MAT_DIALOG_DATA) data) {
15 this.worker = data;
16 }
17
18 ngOnInit(): void {
19 }
20
21 close() {
22 this.dialogRef.close();
23 }
24
25 toggleExpansion() {
26 this.isExpanded = !this.isExpanded;
27 }
28
29}
Note: See TracBrowser for help on using the repository browser.