cic-staff-client/src/app/pages/tokens/token-details/token-details.component.ts

31 lines
636 B
TypeScript
Raw Normal View History

import {
ChangeDetectionStrategy,
Component,
EventEmitter,
Input,
OnInit,
Output,
} from '@angular/core';
import { Token } from '@app/_models';
2020-11-25 09:00:20 +01:00
@Component({
selector: 'app-token-details',
templateUrl: './token-details.component.html',
styleUrls: ['./token-details.component.scss'],
2021-05-10 18:15:25 +02:00
changeDetection: ChangeDetectionStrategy.OnPush,
2020-11-25 09:00:20 +01:00
})
export class TokenDetailsComponent implements OnInit {
@Input() token: Token;
2020-11-25 09:00:20 +01:00
@Output() closeWindow: EventEmitter<any> = new EventEmitter<any>();
2021-05-19 18:57:10 +02:00
constructor() {}
ngOnInit(): void {}
close(): void {
this.token = null;
this.closeWindow.emit(this.token);
2020-11-25 09:00:20 +01:00
}
}