|
@@ -36,6 +36,7 @@ import { TeamEnvironment } from "~/helpers/teams/TeamEnvironment"
|
|
|
import { computed } from "vue"
|
|
|
import { useReadonlyStream } from "~/composables/stream"
|
|
|
import { initializeDownloadFile } from "~/helpers/import-export/export"
|
|
|
+import { transformEnvironmentVariables } from "~/helpers/import-export/export/environment"
|
|
|
import { environmentsExporter } from "~/helpers/import-export/export/environments"
|
|
|
import { gistExporter } from "~/helpers/import-export/export/gist"
|
|
|
import { platform } from "~/platform"
|
|
@@ -73,10 +74,12 @@ const isTeamEnvironment = computed(() => {
|
|
|
|
|
|
const environmentJson = computed(() => {
|
|
|
if (isTeamEnvironment.value && props.teamEnvironments) {
|
|
|
- return props.teamEnvironments.map((x) => x.environment)
|
|
|
+ return props.teamEnvironments.map(({ environment }) =>
|
|
|
+ transformEnvironmentVariables(environment)
|
|
|
+ )
|
|
|
}
|
|
|
|
|
|
- return myEnvironments.value
|
|
|
+ return myEnvironments.value.map(transformEnvironmentVariables)
|
|
|
})
|
|
|
|
|
|
const workspaceType = computed(() =>
|