1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-04 02:33:33 +00:00

temp-feat(vault): WIP add code to make dialogs pop up

This commit is contained in:
Stephon Brown
2025-09-18 10:37:55 -04:00
parent 9c34a5ba3e
commit 5b77d1efef

View File

@@ -96,6 +96,7 @@ import {
CollectionDialogTabType,
openCollectionDialog,
} from "../../admin-console/organizations/shared/components/collection-dialog";
import { UpgradeFlowService } from "../../billing/individual/upgrade/services/upgrade-flow.service";
import { SharedModule } from "../../shared/shared.module";
import { AssignCollectionsWebComponent } from "../components/assign-collections";
import {
@@ -150,6 +151,7 @@ const BroadcasterSubscriptionId = "VaultComponent";
RoutedVaultFilterService,
RoutedVaultFilterBridgeService,
DefaultCipherFormConfigService,
UpgradeFlowService,
],
})
export class VaultComponent<C extends CipherViewLike> implements OnInit, OnDestroy {
@@ -223,6 +225,7 @@ export class VaultComponent<C extends CipherViewLike> implements OnInit, OnDestr
private restrictedItemTypesService: RestrictedItemTypesService,
private cipherArchiveService: CipherArchiveService,
private organizationWarningsService: OrganizationWarningsService,
private upgradeFlowService: UpgradeFlowService,
) {}
async ngOnInit() {
@@ -525,6 +528,11 @@ export class VaultComponent<C extends CipherViewLike> implements OnInit, OnDestr
this.changeDetectorRef.markForCheck();
},
);
await this.openUpgradeDialog();
}
private async openUpgradeDialog() {
await this.upgradeFlowService.startUpgradeFlow();
}
ngOnDestroy() {