mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-18 11:05:41 +01:00
dont show popout in firefox sidebar
This commit is contained in:
parent
57a0c0fc75
commit
38f55d7147
@ -20,11 +20,14 @@ 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();
|
||||
if (this.show && this.popupUtilsService.inSidebar(window) && this.platformUtilsService.isFirefox()) {
|
||||
this.show = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -177,7 +177,7 @@ header {
|
||||
.fa {
|
||||
position: absolute;
|
||||
top: 15px;
|
||||
left: 10px;
|
||||
left: 20px;
|
||||
color: lighten($brand-primary, 30%);
|
||||
}
|
||||
|
||||
@ -204,6 +204,10 @@ header {
|
||||
|
||||
.left + .search {
|
||||
padding-left: 0;
|
||||
|
||||
.fa {
|
||||
left: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
.search + .right {
|
||||
|
@ -1,5 +1,5 @@
|
||||
<header>
|
||||
<div class="left">
|
||||
<div class="left" *ngIf="showLeftHeader">
|
||||
<app-pop-out></app-pop-out>
|
||||
</div>
|
||||
<div class="search">
|
||||
|
@ -50,6 +50,7 @@ export class GroupingsComponent extends BaseGroupingsComponent implements OnInit
|
||||
searchText: string;
|
||||
state: any;
|
||||
scopeState: any;
|
||||
showLeftHeader = true;
|
||||
|
||||
private loadedTimeout: number;
|
||||
private selectedTimeout: number;
|
||||
@ -77,6 +78,7 @@ export class GroupingsComponent extends BaseGroupingsComponent implements OnInit
|
||||
}
|
||||
|
||||
async ngOnInit() {
|
||||
this.showLeftHeader = !(this.popupUtils.inSidebar(window) && this.platformUtilsService.isFirefox());
|
||||
this.stateService.remove('CiphersComponent');
|
||||
|
||||
this.broadcasterService.subscribe(ComponentId, (message: any) => {
|
||||
|
Loading…
Reference in New Issue
Block a user