1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 16:53:34 +00:00

search input type variable

This commit is contained in:
Kyle Spearrin
2019-03-13 22:54:18 -04:00
parent 0df3208d45
commit 10bb317a67
7 changed files with 14 additions and 8 deletions

View File

@@ -51,6 +51,7 @@ export class CiphersComponent extends BaseCiphersComponent implements OnInit, On
pagedCiphers: CipherView[] = [];
nestedFolders: Array<TreeNode<FolderView>>;
nestedCollections: Array<TreeNode<CollectionView>>;
searchTypeSearch = false;
private didScroll = false;
private selectedTimeout: number;
@@ -72,6 +73,7 @@ export class CiphersComponent extends BaseCiphersComponent implements OnInit, On
}
async ngOnInit() {
this.searchTypeSearch = !this.platformUtilsService.isSafari();
const queryParamsSub = this.route.queryParams.subscribe(async (params) => {
if (params.type) {
this.searchPlaceholder = this.i18nService.t('searchType');