Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia
TypeScript apiapi-clientapi-restapi-testingdeveloper-toolsgraphqlhttphttp-clientpwarestrest-apispatestingtesting-toolstoolsvuevuejswebsocket
fix: proper toast for actions on environments - resolved #2279
liyasthomasbf97d8811c0b
diff --git a/packages/hoppscotch-app/components/environments/Details.vue b/packages/hoppscotch-app/components/environments/Details.vueindex 0e8a5ea72..b485bdea2 100644--- a/packages/hoppscotch-app/components/environments/Details.vue+++ b/packages/hoppscotch-app/components/environments/Details.vue@@ -255,13 +255,14 @@ const saveEnvironment = () => {variables: vars.value,}- if (props.editingEnvironmentIndex === null) returnif (props.editingEnvironmentIndex === "Global")setGlobalEnvVariables(environmentUpdated.variables)else if (props.action === "new") {updateEnvironment(envList.value.length - 1, environmentUpdated)+ toast.success(`${t("environment.created")}`)} else {updateEnvironment(props.editingEnvironmentIndex!, environmentUpdated)+ toast.success(`${t("environment.updated")}`)}hideModal()}diff --git a/packages/hoppscotch-app/locales/en.json b/packages/hoppscotch-app/locales/en.jsonindex feff6b09e..a558103ad 100644--- a/packages/hoppscotch-app/locales/en.json+++ b/packages/hoppscotch-app/locales/en.json@@ -171,6 +171,7 @@"environment": {"add_to_global": "Add to Global","added": "Environment addition",+ "created": "Environment created","create_new": "Create new environment","deleted": "Environment deletion","edit": "Edit Environment",@@ -181,7 +182,7 @@"no_environment_description": "No environments were selected. Choose what to do with the following variables.","select": "Select environment","title": "Environments",- "updated": "Environment updation",+ "updated": "Environment updated","variable_list": "Variable List"},"error": {