mirror of
https://github.com/bitwarden/browser.git
synced 2025-02-10 00:21:27 +01:00
[PM-5189] Refactoring implementation
This commit is contained in:
parent
ba74a1cd36
commit
12077a2273
@ -3,7 +3,7 @@ import { AuthenticationStatus } from "@bitwarden/common/auth/enums/authenticatio
|
||||
import { createInitAutofillInlineMenuButtonMessageMock } from "../../../../spec/autofill-mocks";
|
||||
import { flushPromises, postWindowMessage } from "../../../../spec/testing-utils";
|
||||
|
||||
import AutofillInlineMenuButton from "./autofill-inline-menu-button";
|
||||
import { AutofillInlineMenuButton } from "./autofill-inline-menu-button";
|
||||
|
||||
describe("AutofillInlineMenuButton", () => {
|
||||
globalThis.customElements.define("autofill-inline-menu-button", AutofillInlineMenuButton);
|
||||
|
@ -12,7 +12,7 @@ import {
|
||||
} from "../../abstractions/autofill-inline-menu-button";
|
||||
import { AutofillInlineMenuPageElement } from "../shared/autofill-inline-menu-page-element";
|
||||
|
||||
class AutofillInlineMenuButton extends AutofillInlineMenuPageElement {
|
||||
export class AutofillInlineMenuButton extends AutofillInlineMenuPageElement {
|
||||
private authStatus: AuthenticationStatus = AuthenticationStatus.LoggedOut;
|
||||
private readonly buttonElement: HTMLButtonElement;
|
||||
private readonly logoIconElement: HTMLElement;
|
||||
@ -124,5 +124,3 @@ class AutofillInlineMenuButton extends AutofillInlineMenuPageElement {
|
||||
this.postMessageToParent({ command: "triggerDelayedAutofillInlineMenuClosure" });
|
||||
}
|
||||
}
|
||||
|
||||
export default AutofillInlineMenuButton;
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { AutofillOverlayElement } from "../../../../enums/autofill-overlay.enum";
|
||||
|
||||
import AutofillInlineMenuButton from "./autofill-inline-menu-button";
|
||||
import { AutofillInlineMenuButton } from "./autofill-inline-menu-button";
|
||||
|
||||
require("./button.scss");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user