1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-09-28 04:08:47 +02:00

[PM-5345] Update vault-search to use bit-search (#7273)

Migrate vault search to use the bit-search component.
This commit is contained in:
Oscar Hinton 2024-01-15 12:10:31 +01:00 committed by GitHub
parent eae845d900
commit 36b2d8b6b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 12 deletions

View File

@ -16,16 +16,16 @@
</a>
</div>
<div class="card-body">
<input
type="search"
placeholder="{{ searchPlaceholder | i18n }}"
id="search"
class="form-control"
[ngModel]="searchText"
(ngModelChange)="onSearchTextChanged($event)"
autocomplete="off"
appAutofocus
/>
<div class="tw-mb-4">
<bit-search
id="search"
placeholder="{{ searchPlaceholder | i18n }}"
[(ngModel)]="searchText"
(ngModelChange)="onSearchTextChanged($event)"
autocomplete="off"
appAutofocus
/>
</div>
<ng-container *ngFor="let f of filtersList">
<div class="filter">
<app-filter-section [activeFilter]="activeFilter" [section]="f"> </app-filter-section>

View File

@ -1,12 +1,14 @@
import { NgModule } from "@angular/core";
import { SearchModule } from "@bitwarden/components";
import { SharedModule } from "../../../../shared";
import { VaultFilterSectionComponent } from "./components/vault-filter-section.component";
@NgModule({
imports: [SharedModule],
imports: [SharedModule, SearchModule],
declarations: [VaultFilterSectionComponent],
exports: [SharedModule, VaultFilterSectionComponent],
exports: [SharedModule, VaultFilterSectionComponent, SearchModule],
})
export class VaultFilterSharedModule {}