mirror of
https://github.com/bitwarden/browser
synced 2026-02-18 18:33:50 +00:00
added back search bar when FF not enabled
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
<div class="header tw-flex tw-justify-end">
|
||||
<div class="header">
|
||||
<app-search></app-search>
|
||||
<app-account-switcher></app-account-switcher>
|
||||
</div>
|
||||
|
||||
@@ -105,6 +105,7 @@ import {
|
||||
} from "@bitwarden/vault";
|
||||
|
||||
import { DesktopHeaderComponent } from "../../../app/layout/header/desktop-header.component";
|
||||
import { SearchBarService } from "../../../app/layout/search/search-bar.service";
|
||||
import { DesktopCredentialGenerationService } from "../../../services/desktop-cipher-form-generator.service";
|
||||
import { DesktopPremiumUpgradePromptService } from "../../../services/desktop-premium-upgrade-prompt.service";
|
||||
import { AssignCollectionsDesktopComponent } from "../vault/assign-collections";
|
||||
@@ -192,6 +193,7 @@ export class VaultComponent<C extends CipherViewLike>
|
||||
private vaultFilterService = inject(VaultFilterService);
|
||||
private routedVaultFilterService = inject(RoutedVaultFilterService);
|
||||
private vaultItemTransferService: VaultItemsTransferService = inject(VaultItemsTransferService);
|
||||
private searchBarService = inject(SearchBarService);
|
||||
|
||||
// FIXME(https://bitwarden.atlassian.net/browse/CL-903): Migrate to Signals
|
||||
// eslint-disable-next-line @angular-eslint/prefer-signals
|
||||
@@ -328,6 +330,8 @@ export class VaultComponent<C extends CipherViewLike>
|
||||
const activeUserId = await firstValueFrom(getUserId(this.accountService.activeAccount$));
|
||||
this.activeUserId = activeUserId;
|
||||
|
||||
this.searchBarService.setEnabled(false);
|
||||
|
||||
// Clear cipher selection on page load/reload to prevent flash of content
|
||||
const currentParams = await firstValueFrom(this.route.queryParams);
|
||||
if (currentParams.itemId || currentParams.cipherId) {
|
||||
|
||||
Reference in New Issue
Block a user