2021-06-02 09:04:42 +02:00
|
|
|
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',
|
2021-03-14 09:23:20 +01:00
|
|
|
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 {
|
2021-06-02 09:04:42 +02:00
|
|
|
@Input() token: Token;
|
2020-11-25 09:00:20 +01:00
|
|
|
|
2021-06-02 09:04:42 +02:00
|
|
|
@Output() closeWindow: EventEmitter<any> = new EventEmitter<any>();
|
2021-05-19 18:57:10 +02:00
|
|
|
|
2021-06-02 09:04:42 +02:00
|
|
|
constructor() {}
|
|
|
|
|
|
|
|
ngOnInit(): void {}
|
|
|
|
|
|
|
|
close(): void {
|
|
|
|
this.token = null;
|
|
|
|
this.closeWindow.emit(this.token);
|
2020-11-25 09:00:20 +01:00
|
|
|
}
|
|
|
|
}
|