From f2777a9a759c41db5ab1302c4a6af923a037eb7a Mon Sep 17 00:00:00 2001 From: nivedin Date: Wed, 6 Dec 2023 14:34:34 +0530 Subject: [PATCH] chore: cleanup --- .../hoppscotch-common/src/components/share/CustomizeModal.vue | 2 -- packages/hoppscotch-common/src/components/share/Modal.vue | 2 -- packages/hoppscotch-common/src/components/share/index.vue | 2 +- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/hoppscotch-common/src/components/share/CustomizeModal.vue b/packages/hoppscotch-common/src/components/share/CustomizeModal.vue index da1b0dfa6..36b4ca8f6 100644 --- a/packages/hoppscotch-common/src/components/share/CustomizeModal.vue +++ b/packages/hoppscotch-common/src/components/share/CustomizeModal.vue @@ -242,7 +242,6 @@ const emit = defineEmits<{ request: { sharedRequestID: string | undefined content: string | undefined - type: string | undefined } ): void (e: "hide-modal"): void @@ -411,7 +410,6 @@ const copyContent = ({ const copyContent = { sharedRequestID: props.request?.id, content, - type: widget, } emit("copy-shared-request", copyContent) } diff --git a/packages/hoppscotch-common/src/components/share/Modal.vue b/packages/hoppscotch-common/src/components/share/Modal.vue index 2bb68482e..05c9845ea 100644 --- a/packages/hoppscotch-common/src/components/share/Modal.vue +++ b/packages/hoppscotch-common/src/components/share/Modal.vue @@ -144,7 +144,6 @@ const emit = defineEmits<{ payload: { sharedRequestID: string | undefined content: string | undefined - type: string | undefined } ): void }>() @@ -156,7 +155,6 @@ const createSharedRequest = () => { const copySharedRequest = (payload: { sharedRequestID: string | undefined content: string | undefined - type: string | undefined }) => { emit("copy-shared-request", payload) } diff --git a/packages/hoppscotch-common/src/components/share/index.vue b/packages/hoppscotch-common/src/components/share/index.vue index fb4d9c28a..a1455d7d4 100644 --- a/packages/hoppscotch-common/src/components/share/index.vue +++ b/packages/hoppscotch-common/src/components/share/index.vue @@ -297,6 +297,7 @@ const displayShareRequestModal = (show: boolean) => { showShareRequestModal.value = show step.value = 1 } + const displayCustomizeRequestModal = ( show: boolean, embedProperties?: string | null @@ -416,7 +417,6 @@ const customizeSharedRequest = ( const copySharedRequest = (payload: { sharedRequestID: string | undefined content: string | undefined - type: string | undefined }) => { if (payload.content) { copyToClipboard(payload.content)