+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/packages/hoppscotch-app/helpers/types/HoppRequestSaveContext.ts b/packages/hoppscotch-app/helpers/types/HoppRequestSaveContext.ts
index f80def03b..014b76b39 100644
--- a/packages/hoppscotch-app/helpers/types/HoppRequestSaveContext.ts
+++ b/packages/hoppscotch-app/helpers/types/HoppRequestSaveContext.ts
@@ -1,3 +1,5 @@
+import { HoppRESTRequest } from "@hoppscotch/data"
+
/**
* We use the save context to figure out
* how a loaded request is to be saved.
@@ -18,6 +20,10 @@ export type HoppRequestSaveContext =
* Index to the request
*/
requestIndex: number
+ /**
+ * Current request
+ */
+ req?: HoppRESTRequest
}
| {
/**
@@ -36,4 +42,8 @@ export type HoppRequestSaveContext =
* ID of the collection loaded
*/
collectionID?: string
+ /**
+ * Current request
+ */
+ req?: HoppRESTRequest
}
diff --git a/packages/hoppscotch-app/locales/en.json b/packages/hoppscotch-app/locales/en.json
index 58319455e..feff6b09e 100644
--- a/packages/hoppscotch-app/locales/en.json
+++ b/packages/hoppscotch-app/locales/en.json
@@ -10,6 +10,7 @@
"disconnect": "Disconnect",
"dismiss": "Dismiss",
"download_file": "Download file",
+ "dont_save": "Don't save",
"duplicate": "Duplicate",
"edit": "Edit",
"go_back": "Go back",
@@ -121,6 +122,7 @@
"team_collections": "Team Collections"
},
"confirm": {
+ "request_change": "Are you sure you want to discard current request, unsaved changes will be lost.",
"exit_team": "Are you sure you want to leave this team?",
"logout": "Are you sure you want to logout?",
"remove_collection": "Are you sure you want to permanently delete this collection?",