mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 08:43:33 +00:00
Revert "no need to just search name on edge any longer"
This reverts commit 20fb4d3a39.
This commit is contained in:
@@ -5,12 +5,20 @@ import {
|
||||
|
||||
import { CipherView } from '../../models/view/cipherView';
|
||||
|
||||
import { PlatformUtilsService } from '../../abstractions/platformUtils.service';
|
||||
|
||||
import { DeviceType } from '../../enums';
|
||||
|
||||
@Pipe({
|
||||
name: 'searchCiphers',
|
||||
})
|
||||
export class SearchCiphersPipe implements PipeTransform {
|
||||
private onlySearchName = false;
|
||||
|
||||
constructor(platformUtilsService: PlatformUtilsService) {
|
||||
this.onlySearchName = platformUtilsService.getDevice() === DeviceType.EdgeExtension;
|
||||
}
|
||||
|
||||
transform(ciphers: CipherView[], searchText: string): CipherView[] {
|
||||
if (ciphers == null || ciphers.length === 0) {
|
||||
return [];
|
||||
|
||||
Reference in New Issue
Block a user