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>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<input
|
<div class="tw-mb-4">
|
||||||
type="search"
|
<bit-search
|
||||||
placeholder="{{ searchPlaceholder | i18n }}"
|
id="search"
|
||||||
id="search"
|
placeholder="{{ searchPlaceholder | i18n }}"
|
||||||
class="form-control"
|
[(ngModel)]="searchText"
|
||||||
[ngModel]="searchText"
|
(ngModelChange)="onSearchTextChanged($event)"
|
||||||
(ngModelChange)="onSearchTextChanged($event)"
|
autocomplete="off"
|
||||||
autocomplete="off"
|
appAutofocus
|
||||||
appAutofocus
|
/>
|
||||||
/>
|
</div>
|
||||||
<ng-container *ngFor="let f of filtersList">
|
<ng-container *ngFor="let f of filtersList">
|
||||||
<div class="filter">
|
<div class="filter">
|
||||||
<app-filter-section [activeFilter]="activeFilter" [section]="f"> </app-filter-section>
|
<app-filter-section [activeFilter]="activeFilter" [section]="f"> </app-filter-section>
|
||||||
|
@ -1,12 +1,14 @@
|
|||||||
import { NgModule } from "@angular/core";
|
import { NgModule } from "@angular/core";
|
||||||
|
|
||||||
|
import { SearchModule } from "@bitwarden/components";
|
||||||
|
|
||||||
import { SharedModule } from "../../../../shared";
|
import { SharedModule } from "../../../../shared";
|
||||||
|
|
||||||
import { VaultFilterSectionComponent } from "./components/vault-filter-section.component";
|
import { VaultFilterSectionComponent } from "./components/vault-filter-section.component";
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [SharedModule],
|
imports: [SharedModule, SearchModule],
|
||||||
declarations: [VaultFilterSectionComponent],
|
declarations: [VaultFilterSectionComponent],
|
||||||
exports: [SharedModule, VaultFilterSectionComponent],
|
exports: [SharedModule, VaultFilterSectionComponent, SearchModule],
|
||||||
})
|
})
|
||||||
export class VaultFilterSharedModule {}
|
export class VaultFilterSharedModule {}
|
||||||
|
Loading…
Reference in New Issue
Block a user