From 1e3a82586a6b8fbff9028f7b6d08aeeee96a8835 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Wed, 11 Apr 2018 10:48:48 -0400 Subject: [PATCH] show popout conditionals --- src/popup/components/pop-out.component.html | 8 +++++--- src/popup/components/pop-out.component.ts | 11 +++++++++-- src/popup/tools/password-generator.component.html | 1 + src/popup/vault/current-tab.component.html | 2 +- src/popup/vault/current-tab.component.ts | 2 -- 5 files changed, 16 insertions(+), 8 deletions(-) diff --git a/src/popup/components/pop-out.component.html b/src/popup/components/pop-out.component.html index 7562b984a4..c8ae8a606b 100644 --- a/src/popup/components/pop-out.component.html +++ b/src/popup/components/pop-out.component.html @@ -1,3 +1,5 @@ - + + + diff --git a/src/popup/components/pop-out.component.ts b/src/popup/components/pop-out.component.ts index 4732e75980..8f62c819d2 100644 --- a/src/popup/components/pop-out.component.ts +++ b/src/popup/components/pop-out.component.ts @@ -1,4 +1,7 @@ -import { Component } from '@angular/core'; +import { + Component, + Input, +} from '@angular/core'; import { Angulartics2 } from 'angulartics2'; @@ -13,8 +16,12 @@ import { PopupUtilsService } from '../services/popup-utils.service'; templateUrl: 'pop-out.component.html', }) export class PopOutComponent { + @Input() show = true; + constructor(private analytics: Angulartics2, private platformUtilsService: PlatformUtilsService, - private popupUtilsService: PopupUtilsService) { } + private popupUtilsService: PopupUtilsService) { + this.show = !this.platformUtilsService.isSafari(); + } expand() { this.analytics.eventTrack.next({ action: 'Pop Out Window' }); diff --git a/src/popup/tools/password-generator.component.html b/src/popup/tools/password-generator.component.html index 01cdba3a3a..bde546d72d 100644 --- a/src/popup/tools/password-generator.component.html +++ b/src/popup/tools/password-generator.component.html @@ -1,5 +1,6 @@
+
diff --git a/src/popup/vault/current-tab.component.html b/src/popup/vault/current-tab.component.html index 168fb9b91d..94c967f307 100644 --- a/src/popup/vault/current-tab.component.html +++ b/src/popup/vault/current-tab.component.html @@ -1,6 +1,6 @@
- + diff --git a/src/popup/vault/current-tab.component.ts b/src/popup/vault/current-tab.component.ts index f99da8ea22..c190d152ee 100644 --- a/src/popup/vault/current-tab.component.ts +++ b/src/popup/vault/current-tab.component.ts @@ -43,7 +43,6 @@ export class CurrentTabComponent implements OnInit, OnDestroy { searchText: string; canAutofill = false; inSidebar = false; - showPopout = true; disableSearch = false; loaded = false; loadedTimeout: number; @@ -55,7 +54,6 @@ export class CurrentTabComponent implements OnInit, OnDestroy { private ngZone: NgZone, private broadcasterService: BroadcasterService, private changeDetectorRef: ChangeDetectorRef, private syncService: SyncService) { this.inSidebar = popupUtilsService.inSidebar(window); - this.showPopout = !this.inSidebar && !platformUtilsService.isSafari(); this.disableSearch = platformUtilsService.isEdge(); }