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:
@@ -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);
|
||||||
|
|||||||
@@ -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;
|
|
||||||
|
|||||||
@@ -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");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user