mirror of
https://framagit.org/framasoft/framadate/funky-framadate-front.git
synced 2023-08-25 13:53:14 +02:00
26 lines
697 B
TypeScript
26 lines
697 B
TypeScript
import { Component, Inject, OnInit } from '@angular/core';
|
|
import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';
|
|
|
|
import { Answer } from '../../../core/enums/answer.enum';
|
|
import { Choice } from '../../../core/models/choice.model';
|
|
|
|
@Component({
|
|
selector: 'app-choice-details',
|
|
templateUrl: './choice-details.component.html',
|
|
styleUrls: ['./choice-details.component.scss'],
|
|
})
|
|
export class ChoiceDetailsComponent implements OnInit {
|
|
public answerEnum = Answer;
|
|
|
|
constructor(
|
|
public dialogRef: MatDialogRef<ChoiceDetailsComponent>,
|
|
@Inject(MAT_DIALOG_DATA) public choice: Choice
|
|
) {}
|
|
|
|
ngOnInit(): void {}
|
|
|
|
public closeDialog(): void {
|
|
this.dialogRef.close();
|
|
}
|
|
}
|