diff --git a/packages/hoppscotch-app/components/environments/Details.vue b/packages/hoppscotch-app/components/environments/Details.vue index 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) return if (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.json index 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": {