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 {
|
import {
|
||||||
Component,
|
Component,
|
||||||
Input,
|
Input,
|
||||||
|
OnInit,
|
||||||
} from '@angular/core';
|
} from '@angular/core';
|
||||||
|
|
||||||
import { Angulartics2 } from 'angulartics2';
|
import { Angulartics2 } from 'angulartics2';
|
||||||
@ -15,13 +16,17 @@ import { PopupUtilsService } from '../services/popup-utils.service';
|
|||||||
selector: 'app-pop-out',
|
selector: 'app-pop-out',
|
||||||
templateUrl: 'pop-out.component.html',
|
templateUrl: 'pop-out.component.html',
|
||||||
})
|
})
|
||||||
export class PopOutComponent {
|
export class PopOutComponent implements OnInit {
|
||||||
@Input() show = true;
|
@Input() show = true;
|
||||||
|
|
||||||
constructor(private analytics: Angulartics2, private platformUtilsService: PlatformUtilsService,
|
constructor(private analytics: Angulartics2, private platformUtilsService: PlatformUtilsService,
|
||||||
private popupUtilsService: PopupUtilsService) {
|
private popupUtilsService: PopupUtilsService) {}
|
||||||
|
|
||||||
|
ngOnInit() {
|
||||||
|
if (this.show) {
|
||||||
this.show = !this.platformUtilsService.isSafari();
|
this.show = !this.platformUtilsService.isSafari();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
expand() {
|
expand() {
|
||||||
this.analytics.eventTrack.next({ action: 'Pop Out Window' });
|
this.analytics.eventTrack.next({ action: 'Pop Out Window' });
|
||||||
|
Loading…
Reference in New Issue
Block a user