feat: added toggle Button to Frontend

This commit is contained in:
Daniel Maurer
2023-07-21 14:56:19 +02:00
committed by nivedin
parent 7beed30815
commit 7d61e69b3d
15 changed files with 87 additions and 24 deletions

View File

@@ -50,6 +50,7 @@ export function getEnv(envName: string, envs: TestResult["envs"]) {
export function setEnv(
envName: string,
envValue: string,
envSecret: boolean,
envs: TestResult["envs"]
): TestResult["envs"] {
const indexInSelected = envs.selected.findIndex((x) => x.key === envName)
@@ -80,6 +81,7 @@ export function setEnv(
envs.selected.push({
key: envName,
value: envValue,
secret: envSecret,
})
return {