mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-24 12:06:15 +01: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:
parent
eae845d900
commit
36b2d8b6b2
@ -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>
|
||||
|
@ -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 {}
|
||||
|
Loading…
Reference in New Issue
Block a user