mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 08:43:33 +00:00
[PM-6992] Refactor VaultComponent (#10126)
* Added function to return cipherview observable and trigger the decryption process if the cipherviews$ observable returns empty * Updated the vault component to use getCipherViews$ observable function * converted vault banner to standalone component * converted vault header to standalone component * fixed unawaited promises converted component to standalone component * cleaned up vault module * fixed imports * refactored getCipherView$ observable * refactored onVaultItemsEvent to switch case * Refactored to use toast service instead of platform utils service for toast * Added function to return cipherview observable and trigger the decryption process if the cipherviews$ observable returns empty * Updated the vault component to use getCipherViews$ observable function * converted vault banner to standalone component * converted vault header to standalone component * fixed unawaited promises converted component to standalone component * cleaned up vault module * fixed imports * refactored getCipherView$ observable * refactored onVaultItemsEvent to switch case * Refactored to use toast service instead of platform utils service for toast * merged with main and fixed conflicts * reordered standalone property * converted components to standalone * cleaned up ng module for org vault * cleaned up vault module individual vault * fixed conflicts * Replaced deprecated toast service * refactored to use switch case for org vault * fixed comments and fixed failing tests reverted to use getAllDecrypted
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
import { CommonModule } from "@angular/common";
|
||||
import { Component, EventEmitter, Input, OnInit, Output } from "@angular/core";
|
||||
import { Router } from "@angular/router";
|
||||
import { firstValueFrom } from "rxjs";
|
||||
|
||||
import { JslibModule } from "@bitwarden/angular/jslib.module";
|
||||
import { OrganizationService } from "@bitwarden/common/admin-console/abstractions/organization/organization.service.abstraction";
|
||||
import { Organization } from "@bitwarden/common/admin-console/models/domain/organization";
|
||||
import { ProductTierType } from "@bitwarden/common/billing/enums";
|
||||
@@ -9,8 +11,16 @@ import { FeatureFlag } from "@bitwarden/common/enums/feature-flag.enum";
|
||||
import { ConfigService } from "@bitwarden/common/platform/abstractions/config/config.service";
|
||||
import { I18nService } from "@bitwarden/common/platform/abstractions/i18n.service";
|
||||
import { TreeNode } from "@bitwarden/common/vault/models/domain/tree-node";
|
||||
import { DialogService, SimpleDialogOptions } from "@bitwarden/components";
|
||||
import {
|
||||
DialogService,
|
||||
SimpleDialogOptions,
|
||||
BreadcrumbsModule,
|
||||
MenuModule,
|
||||
SearchModule,
|
||||
} from "@bitwarden/components";
|
||||
|
||||
import { HeaderModule } from "../../../layouts/header/header.module";
|
||||
import { SharedModule } from "../../../shared";
|
||||
import { CollectionAdminView } from "../../../vault/core/views/collection-admin.view";
|
||||
import { CollectionDialogTabType } from "../../components/collection-dialog";
|
||||
import { CollectionAdminService } from "../../core/collection-admin.service";
|
||||
@@ -21,8 +31,18 @@ import {
|
||||
} from "../../individual-vault/vault-filter/shared/models/routed-vault-filter.model";
|
||||
|
||||
@Component({
|
||||
standalone: true,
|
||||
selector: "app-org-vault-header",
|
||||
templateUrl: "./vault-header.component.html",
|
||||
imports: [
|
||||
CommonModule,
|
||||
MenuModule,
|
||||
SharedModule,
|
||||
BreadcrumbsModule,
|
||||
HeaderModule,
|
||||
SearchModule,
|
||||
JslibModule,
|
||||
],
|
||||
})
|
||||
export class VaultHeaderComponent implements OnInit {
|
||||
protected All = All;
|
||||
|
||||
Reference in New Issue
Block a user