1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 16:23:44 +00:00

[PM-5189] Refactoring implementation

This commit is contained in:
Cesar Gonzalez
2024-06-11 15:42:08 -05:00
parent ba74a1cd36
commit 12077a2273
3 changed files with 3 additions and 5 deletions

View File

@@ -3,7 +3,7 @@ import { AuthenticationStatus } from "@bitwarden/common/auth/enums/authenticatio
import { createInitAutofillInlineMenuButtonMessageMock } from "../../../../spec/autofill-mocks"; import { createInitAutofillInlineMenuButtonMessageMock } from "../../../../spec/autofill-mocks";
import { flushPromises, postWindowMessage } from "../../../../spec/testing-utils"; import { flushPromises, postWindowMessage } from "../../../../spec/testing-utils";
import AutofillInlineMenuButton from "./autofill-inline-menu-button"; import { AutofillInlineMenuButton } from "./autofill-inline-menu-button";
describe("AutofillInlineMenuButton", () => { describe("AutofillInlineMenuButton", () => {
globalThis.customElements.define("autofill-inline-menu-button", AutofillInlineMenuButton); globalThis.customElements.define("autofill-inline-menu-button", AutofillInlineMenuButton);

View File

@@ -12,7 +12,7 @@ import {
} from "../../abstractions/autofill-inline-menu-button"; } from "../../abstractions/autofill-inline-menu-button";
import { AutofillInlineMenuPageElement } from "../shared/autofill-inline-menu-page-element"; import { AutofillInlineMenuPageElement } from "../shared/autofill-inline-menu-page-element";
class AutofillInlineMenuButton extends AutofillInlineMenuPageElement { export class AutofillInlineMenuButton extends AutofillInlineMenuPageElement {
private authStatus: AuthenticationStatus = AuthenticationStatus.LoggedOut; private authStatus: AuthenticationStatus = AuthenticationStatus.LoggedOut;
private readonly buttonElement: HTMLButtonElement; private readonly buttonElement: HTMLButtonElement;
private readonly logoIconElement: HTMLElement; private readonly logoIconElement: HTMLElement;
@@ -124,5 +124,3 @@ class AutofillInlineMenuButton extends AutofillInlineMenuPageElement {
this.postMessageToParent({ command: "triggerDelayedAutofillInlineMenuClosure" }); this.postMessageToParent({ command: "triggerDelayedAutofillInlineMenuClosure" });
} }
} }
export default AutofillInlineMenuButton;

View File

@@ -1,6 +1,6 @@
import { AutofillOverlayElement } from "../../../../enums/autofill-overlay.enum"; import { AutofillOverlayElement } from "../../../../enums/autofill-overlay.enum";
import AutofillInlineMenuButton from "./autofill-inline-menu-button"; import { AutofillInlineMenuButton } from "./autofill-inline-menu-button";
require("./button.scss"); require("./button.scss");