diff --git a/src/workbench/browser/src/app/shared/components/env-list/env-list.component.ts b/src/workbench/browser/src/app/shared/components/env-list/env-list.component.ts
index 8715f2a73..f6dd648fa 100644
--- a/src/workbench/browser/src/app/shared/components/env-list/env-list.component.ts
+++ b/src/workbench/browser/src/app/shared/components/env-list/env-list.component.ts
@@ -12,13 +12,20 @@ import { StorageService } from '../../services/storage';
{{ it.name }}
{{ it.value }}
+ Global variable
+
+ {{ it.name }}
+ {{ it.value }}
+
`,
styleUrls: [],
})
export class EnvListComponent implements OnInit {
envParams: any = [];
+ gloablParams: any = [];
constructor(private storage: StorageService) {}
async ngOnInit() {
+ this.gloablParams = this.getGlobalParams();
const uuid = Number(localStorage.getItem('env:selected')) || null;
if (uuid == null) {
this.envParams = [];
@@ -26,7 +33,6 @@ export class EnvListComponent implements OnInit {
}
const envList = (await this.getAllEnv()) as [];
const [env]: any[] = envList.filter((it: any) => it.uuid === uuid);
- console.log(env, envList);
this.envParams = env.parameters;
}
getAllEnv(uuid?: number) {
@@ -40,4 +46,11 @@ export class EnvListComponent implements OnInit {
});
});
}
+ getGlobalParams() {
+ const global = localStorage.getItem('EO_TEST_VAR_GLOBALS');
+ return Object.entries(JSON.parse(global)).map((it) => {
+ const [key, value] = it;
+ return { name: key, value };
+ });
+ }
}