From 7db7b9b0683424a594b85ac5265c4a5ff749586b Mon Sep 17 00:00:00 2001 From: Nivedin <53208152+nivedin@users.noreply.github.com> Date: Tue, 19 Dec 2023 18:37:44 +0530 Subject: [PATCH] fix: fallback section for embeds if invalid link (#3673) --- packages/hoppscotch-common/locales/en.json | 1 + .../hoppscotch-common/src/pages/e/_id.vue | 19 +++++++++++++++++-- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/packages/hoppscotch-common/locales/en.json b/packages/hoppscotch-common/locales/en.json index 629c4d1c2..0125cc37e 100644 --- a/packages/hoppscotch-common/locales/en.json +++ b/packages/hoppscotch-common/locales/en.json @@ -295,6 +295,7 @@ "incorrect_email": "Incorrect email", "invalid_link": "Invalid link", "invalid_link_description": "The link you clicked is invalid or expired.", + "invalid_embed_link": "The embed does not exist or is invalid.", "json_parsing_failed": "Invalid JSON", "json_prettify_invalid_body": "Couldn't prettify an invalid body, solve json syntax errors and try again", "network_error": "There seems to be a network error. Please try again.", diff --git a/packages/hoppscotch-common/src/pages/e/_id.vue b/packages/hoppscotch-common/src/pages/e/_id.vue index 12d132bde..94085ae1b 100644 --- a/packages/hoppscotch-common/src/pages/e/_id.vue +++ b/packages/hoppscotch-common/src/pages/e/_id.vue @@ -1,7 +1,19 @@