mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 07:43:35 +00:00
only override show if not false
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user