26 lines
714 B
TypeScript
26 lines
714 B
TypeScript
|
import { Component, OnInit } from '@angular/core';
|
||
|
import { DynamicDialogConfig, DynamicDialogRef } from 'primeng';
|
||
|
|
||
|
import { ResponseType } from '../../../core/enums/response-type.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 choice: Choice;
|
||
|
public responseTypeEnum = ResponseType;
|
||
|
|
||
|
constructor(public ref: DynamicDialogRef, public config: DynamicDialogConfig) {}
|
||
|
|
||
|
ngOnInit(): void {
|
||
|
this.choice = this.config.data;
|
||
|
}
|
||
|
|
||
|
public closeDialog(): void {
|
||
|
this.ref.close();
|
||
|
}
|
||
|
}
|