mirror of
https://github.com/bitwarden/browser.git
synced 2024-12-27 17:18:04 +01:00
only override show if not false
This commit is contained in:
parent
b88efe3e04
commit
5a7394cb33
@ -1,6 +1,7 @@
|
||||
import {
|
||||
Component,
|
||||
Input,
|
||||
OnInit,
|
||||
} from '@angular/core';
|
||||
|
||||
import { Angulartics2 } from 'angulartics2';
|
||||
@ -15,13 +16,17 @@ 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) {
|
||||
private popupUtilsService: PopupUtilsService) {}
|
||||
|
||||
ngOnInit() {
|
||||
if (this.show) {
|
||||
this.show = !this.platformUtilsService.isSafari();
|
||||
}
|
||||
}
|
||||
|
||||
expand() {
|
||||
this.analytics.eventTrack.next({ action: 'Pop Out Window' });
|
||||
|
Loading…
Reference in New Issue
Block a user