1 |
bb7795cd
|
hlavja
|
import {Component, EventEmitter, Input, OnInit, Output} from '@angular/core';
|
2 |
|
|
|
3 |
|
|
@Component({
|
4 |
25a20eec
|
hlavja
|
selector: 'app-unit-popup',
|
5 |
bb7795cd
|
hlavja
|
templateUrl: './unit-popup.component.html',
|
6 |
|
|
styleUrls: ['./unit-popup.component.scss']
|
7 |
|
|
})
|
8 |
|
|
export class UnitPopupComponent implements OnInit {
|
9 |
|
|
|
10 |
|
|
@Input() isVisible;
|
11 |
|
|
@Input() unit;
|
12 |
|
|
@Output() isVisibleChange: EventEmitter<boolean> = new EventEmitter<boolean>();
|
13 |
|
|
constructor() { }
|
14 |
|
|
|
15 |
|
|
ngOnInit(): void {
|
16 |
|
|
}
|
17 |
|
|
|
18 |
|
|
|
19 |
|
|
hidePopup() {
|
20 |
|
|
this.isVisibleChange.emit(false);
|
21 |
|
|
}
|
22 |
|
|
|
23 |
|
|
close() {
|
24 |
|
|
this.isVisibleChange.emit(false);
|
25 |
|
|
}
|
26 |
|
|
}
|