1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-17 16:53:34 +00:00

pm-5273 Update references

This commit is contained in:
Carlos Gonçalves
2024-03-09 09:53:14 +00:00
parent b6b7ea283c
commit 1145201549
16 changed files with 54 additions and 45 deletions

View File

@@ -19,6 +19,7 @@ import {
UsernameGeneratorOptions,
} from "@bitwarden/common/tools/generator/username";
import { EmailForwarderOptions } from "@bitwarden/common/tools/models/domain/email-forwarder-options";
import { CipherService } from "@bitwarden/common/vault/abstractions/cipher.service";
@Directive()
export class GeneratorComponent implements OnInit {
@@ -57,6 +58,7 @@ export class GeneratorComponent implements OnInit {
protected usernameGenerationService: UsernameGenerationServiceAbstraction,
protected platformUtilsService: PlatformUtilsService,
protected stateService: StateService,
protected cipherService: CipherService,
protected i18nService: I18nService,
protected logService: LogService,
protected route: ActivatedRoute,

View File

@@ -678,7 +678,7 @@ export class AddEditComponent implements OnInit, OnDestroy {
}
async loadAddEditCipherInfo(): Promise<boolean> {
const addEditCipherInfo: any = await this.stateService.getAddEditCipherInfo();
const addEditCipherInfo: any = await this.cipherService.getAddEditCipherInfo();
const loadedSavedInfo = addEditCipherInfo != null;
if (loadedSavedInfo) {
@@ -691,7 +691,7 @@ export class AddEditComponent implements OnInit, OnDestroy {
}
}
await this.stateService.setAddEditCipherInfo(null);
await this.cipherService.setAddEditCipherInfo(null);
return loadedSavedInfo;
}