1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-18 11:05:41 +01:00

only override show if not false

This commit is contained in:
Kyle Spearrin 2018-04-11 11:18:58 -04:00
parent b88efe3e04
commit 5a7394cb33

View File

@ -1,6 +1,7 @@
import {
Component,
Input,
OnInit,
} from '@angular/core';
import { Angulartics2 } from 'angulartics2';
@ -15,12 +16,16 @@ import { PopupUtilsService } from '../services/popup-utils.service';
selector: 'app-pop-out',
templateUrl: 'pop-out.component.html',
})
export class PopOutComponent {
export class PopOutComponent implements OnInit {
@Input() show = true;
constructor(private analytics: Angulartics2, private platformUtilsService: PlatformUtilsService,
private popupUtilsService: PopupUtilsService) {
this.show = !this.platformUtilsService.isSafari();
private popupUtilsService: PopupUtilsService) {}
ngOnInit() {
if (this.show) {
this.show = !this.platformUtilsService.isSafari();
}
}
expand() {