mirror of
https://github.com/bitwarden/browser
synced 2025-12-22 11:13:46 +00:00
[PM-15541] Hide ssh key filter behind feature flag (#12239)
* Hide ssh key filter behind feature flag * Hide ssh keys in web client by featureflag * Fix build
This commit is contained in:
@@ -118,6 +118,7 @@
|
||||
type="button"
|
||||
class="box-content-row"
|
||||
appStopClick
|
||||
*ngIf="isSshKeysEnabled"
|
||||
(click)="selectType(cipherType.SshKey)"
|
||||
>
|
||||
<div class="row-main">
|
||||
|
||||
@@ -7,7 +7,9 @@ import { first, switchMap, takeUntil } from "rxjs/operators";
|
||||
import { CollectionView } from "@bitwarden/admin-console/common";
|
||||
import { VaultFilter } from "@bitwarden/angular/vault/vault-filter/models/vault-filter.model";
|
||||
import { SearchService } from "@bitwarden/common/abstractions/search.service";
|
||||
import { FeatureFlag } from "@bitwarden/common/enums/feature-flag.enum";
|
||||
import { BroadcasterService } from "@bitwarden/common/platform/abstractions/broadcaster.service";
|
||||
import { ConfigService } from "@bitwarden/common/platform/abstractions/config/config.service";
|
||||
import { I18nService } from "@bitwarden/common/platform/abstractions/i18n.service";
|
||||
import { PlatformUtilsService } from "@bitwarden/common/platform/abstractions/platform-utils.service";
|
||||
import { SyncService } from "@bitwarden/common/platform/sync";
|
||||
@@ -62,6 +64,8 @@ export class VaultFilterComponent implements OnInit, OnDestroy {
|
||||
selectedOrganization: string = null;
|
||||
showCollections = true;
|
||||
|
||||
isSshKeysEnabled = false;
|
||||
|
||||
private loadedTimeout: number;
|
||||
private selectedTimeout: number;
|
||||
private preventSelected = false;
|
||||
@@ -95,6 +99,7 @@ export class VaultFilterComponent implements OnInit, OnDestroy {
|
||||
private location: Location,
|
||||
private vaultFilterService: VaultFilterService,
|
||||
private vaultBrowserStateService: VaultBrowserStateService,
|
||||
private configService: ConfigService,
|
||||
) {
|
||||
this.noFolderListSize = 100;
|
||||
}
|
||||
@@ -166,6 +171,8 @@ export class VaultFilterComponent implements OnInit, OnDestroy {
|
||||
.subscribe((isSearchable) => {
|
||||
this.isSearchable = isSearchable;
|
||||
});
|
||||
|
||||
this.isSshKeysEnabled = await this.configService.getFeatureFlag(FeatureFlag.SSHKeyVaultItem);
|
||||
}
|
||||
|
||||
ngOnDestroy() {
|
||||
|
||||
Reference in New Issue
Block a user