1
0
mirror of https://github.com/bitwarden/browser.git synced 2025-01-09 19:28:06 +01:00

[PM-5189] Fixing some typos

This commit is contained in:
Cesar Gonzalez 2024-06-11 09:25:16 -05:00
parent 8bfa02eeea
commit 87cccdb52a
No known key found for this signature in database
GPG Key ID: 3381A5457F8CCECF
4 changed files with 12 additions and 13 deletions

View File

@ -1188,7 +1188,7 @@ describe("OverlayBackground", () => {
expect(tabsSendMessageSpy).toHaveBeenCalledWith(
sender.tab,
{ command: "checkIsAutofillInlineMenuButtonVisible" },
{ command: "checkIsInlineMenuButtonVisible" },
{ frameId: 0 },
);
});
@ -1202,7 +1202,7 @@ describe("OverlayBackground", () => {
expect(tabsSendMessageSpy).toHaveBeenCalledWith(
sender.tab,
{ command: "checkIsAutofillInlineMenuListVisible" },
{ command: "checkIsInlineMenuListVisible" },
{ frameId: 0 },
);
});

View File

@ -85,9 +85,8 @@ export class OverlayBackground implements OverlayBackgroundInterface {
updateAutofillInlineMenuHidden: ({ message, sender }) =>
this.updateInlineMenuHidden(message, sender),
checkIsAutofillInlineMenuButtonVisible: ({ sender }) =>
this.checkIsAutofillInlineMenuButtonVisible(sender),
checkIsAutofillInlineMenuListVisible: ({ sender }) =>
this.checkIsAutofillInlineMenuListVisible(sender),
this.checkIsInlineMenuButtonVisible(sender),
checkIsAutofillInlineMenuListVisible: ({ sender }) => this.checkIsInlineMenuListVisible(sender),
checkShouldRepositionInlineMenu: ({ sender }) => this.checkShouldRepositionInlineMenu(sender),
getCurrentTabFrameId: ({ sender }) => this.getSenderFrameId(sender),
updateSubFrameData: ({ message, sender }) => this.updateSubFrameData(message, sender),
@ -984,12 +983,12 @@ export class OverlayBackground implements OverlayBackgroundInterface {
*
* @param sender - The sender of the message
*/
private async checkIsAutofillInlineMenuButtonVisible(
private async checkIsInlineMenuButtonVisible(
sender: chrome.runtime.MessageSender,
): Promise<boolean> {
return await BrowserApi.tabSendMessage(
sender.tab,
{ command: "checkIsAutofillInlineMenuButtonVisible" },
{ command: "checkIsInlineMenuButtonVisible" },
{ frameId: 0 },
);
}
@ -999,12 +998,12 @@ export class OverlayBackground implements OverlayBackgroundInterface {
*
* @param sender - The sender of the message
*/
private async checkIsAutofillInlineMenuListVisible(
private async checkIsInlineMenuListVisible(
sender: chrome.runtime.MessageSender,
): Promise<boolean> {
return await BrowserApi.tabSendMessage(
sender.tab,
{ command: "checkIsAutofillInlineMenuListVisible" },
{ command: "checkIsInlineMenuListVisible" },
{ frameId: 0 },
);
}

View File

@ -5,8 +5,8 @@ export type InlineMenuExtensionMessageHandlers = {
closeInlineMenu: ({ message }: AutofillExtensionMessageParam) => void;
appendInlineMenuElementsToDom: ({ message }: AutofillExtensionMessageParam) => Promise<void>;
toggleInlineMenuHidden: ({ message }: AutofillExtensionMessageParam) => void;
checkIsAutofillInlineMenuButtonVisible: () => boolean;
checkIsAutofillInlineMenuListVisible: () => boolean;
checkIsInlineMenuButtonVisible: () => boolean;
checkIsInlineMenuListVisible: () => boolean;
};
export interface AutofillInlineMenuContentService {

View File

@ -39,8 +39,8 @@ export class AutofillInlineMenuContentService implements AutofillInlineMenuConte
appendInlineMenuElementsToDom: ({ message }) => this.appendInlineMenuElements(message),
toggleInlineMenuHidden: ({ message }) =>
this.toggleInlineMenuHidden(message.isInlineMenuHidden),
checkIsAutofillInlineMenuButtonVisible: () => this.isInlineMenuButtonVisible(),
checkIsAutofillInlineMenuListVisible: () => this.isInlineMenuListVisible(),
checkIsInlineMenuButtonVisible: () => this.isInlineMenuButtonVisible(),
checkIsInlineMenuListVisible: () => this.isInlineMenuListVisible(),
};
constructor() {