fix: proper toast for actions on environments - resolved #2279
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
@@ -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": {
|
||||
|
||||
Reference in New Issue
Block a user