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

renaming the component for checking the user secret to a name that is more clear about what it accomplishes

This commit is contained in:
CarleyDiaz-Bitwarden
2022-06-20 17:24:48 -04:00
parent 15949ed8bc
commit a1b1b632e0
13 changed files with 44 additions and 40 deletions

View File

@@ -13,12 +13,12 @@ import { ApiService } from "@bitwarden/common/abstractions/api.service";
import { CryptoService } from "@bitwarden/common/abstractions/crypto.service";
import { EventService } from "@bitwarden/common/abstractions/event.service";
import { ExportService } from "@bitwarden/common/abstractions/export.service";
import { ExportFilePasswordPromptService } from "@bitwarden/common/abstractions/exportFilePasswordPrompt.service";
import { I18nService } from "@bitwarden/common/abstractions/i18n.service";
import { LogService } from "@bitwarden/common/abstractions/log.service";
import { PlatformUtilsService } from "@bitwarden/common/abstractions/platformUtils.service";
import { PolicyService } from "@bitwarden/common/abstractions/policy.service";
import { StateService } from "@bitwarden/common/abstractions/state.service";
import { UserSecretPromptService } from "@bitwarden/common/abstractions/userSecretPrompt.service";
import { UserVerificationService } from "@bitwarden/common/abstractions/userVerification.service";
import { EventType } from "@bitwarden/common/enums/eventType";
import { PolicyType } from "@bitwarden/common/enums/policyType";
@@ -64,7 +64,7 @@ export class ExportComponent implements OnInit {
protected modalService: ModalService,
protected apiService: ApiService,
protected stateService: StateService,
protected exportFilePasswordPromptService: ExportFilePasswordPromptService,
protected userSecretPromptService: UserSecretPromptService,
protected modalConfig: ModalConfig
) {}

View File

@@ -15,7 +15,7 @@ import { ModalRef } from "./modal/modal.ref";
* Used to verify the user's secret, you can customize all of the text in the modal.
*/
@Directive()
export class ExportFilePasswordPromptComponent {
export class UserSecretPromptComponent {
showPassword = false;
organizationId = "";
confirmDescription = "";

View File

@@ -1,9 +1,9 @@
import { Injectable } from "@angular/core";
import { ExportFilePasswordPromptService as ExportFilePasswordPromptServiceAbstraction } from "@bitwarden/common/abstractions/exportFilePasswordPrompt.service";
import { KeyConnectorService } from "@bitwarden/common/abstractions/keyConnector.service";
import { UserSecretPromptService as UserSecretPromptServiceAbstraction } from "@bitwarden/common/abstractions/userSecretPrompt.service";
import { ExportFilePasswordPromptComponent } from "../components/export-file-password-prompt.component";
import { UserSecretPromptComponent } from "../components/user-secret-prompt.component";
import { ModalService } from "./modal.service";
@@ -11,8 +11,8 @@ import { ModalService } from "./modal.service";
* Used to verify the user's File Password for the "Import passwords using File Password" feature only.
*/
@Injectable()
export class ExportFilePasswordPromptService implements ExportFilePasswordPromptServiceAbstraction {
protected component = ExportFilePasswordPromptComponent;
export class UserSecretPromptService implements UserSecretPromptServiceAbstraction {
protected component = UserSecretPromptComponent;
constructor(
private modalService: ModalService,