From a268cab11e5a8a1d9c661d383153fe444a9141d9 Mon Sep 17 00:00:00 2001 From: Nivedin <53208152+nivedin@users.noreply.github.com> Date: Fri, 25 Aug 2023 00:27:03 +0530 Subject: [PATCH] fix: context menu bugs (#3279) --- packages/hoppscotch-common/locales/en.json | 4 ++-- .../src/services/context-menu/menu/parameter.menu.ts | 2 +- .../src/services/context-menu/menu/url.menu.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/hoppscotch-common/locales/en.json b/packages/hoppscotch-common/locales/en.json index 34ed67138..90a91a830 100644 --- a/packages/hoppscotch-common/locales/en.json +++ b/packages/hoppscotch-common/locales/en.json @@ -159,8 +159,8 @@ }, "context_menu": { "set_environment_variable": "Set as variable", - "add_parameter": "Add to parameter", - "open_link_in_new_tab": "Open link in new tab" + "add_parameters": "Add to parameters", + "open_request_in_new_tab": "Open request in new tab" }, "count": { "header": "Header {count}", diff --git a/packages/hoppscotch-common/src/services/context-menu/menu/parameter.menu.ts b/packages/hoppscotch-common/src/services/context-menu/menu/parameter.menu.ts index ecb468ced..e07a5024e 100644 --- a/packages/hoppscotch-common/src/services/context-menu/menu/parameter.menu.ts +++ b/packages/hoppscotch-common/src/services/context-menu/menu/parameter.menu.ts @@ -114,7 +114,7 @@ export class ParameterMenuService extends Service implements ContextMenu { id: "environment", text: { type: "text", - text: this.t("context_menu.add_parameter"), + text: this.t("context_menu.add_parameters"), }, icon: markRaw(IconArrowDownRight), action: () => { diff --git a/packages/hoppscotch-common/src/services/context-menu/menu/url.menu.ts b/packages/hoppscotch-common/src/services/context-menu/menu/url.menu.ts index fcec234ce..1bf3fb35a 100644 --- a/packages/hoppscotch-common/src/services/context-menu/menu/url.menu.ts +++ b/packages/hoppscotch-common/src/services/context-menu/menu/url.menu.ts @@ -70,7 +70,7 @@ export class URLMenuService extends Service implements ContextMenu { id: "link-tab", text: { type: "text", - text: this.t("context_menu.open_link_in_new_tab"), + text: this.t("context_menu.open_request_in_new_tab"), }, icon: markRaw(IconCopyPlus), action: () => {