-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Maksim Paskal <paskal.maksim@gmail.com>
- Loading branch information
1 parent
4ec5375
commit c46759d
Showing
5 changed files
with
190 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<template> | ||
<div> | ||
<DropDown ref="autotestBranch" id="autotestBranch" text="Select branch" | ||
:endpoint="`/api/project-refs?id=${this.customAction.ProjectID}`" /> | ||
<ul style="list-style-type: none;padding-left: 0px;"> | ||
<li style="margin-top: 10px"> | ||
<pre style="margin-bottom: 0px">Autotest type</pre> | ||
<b-form-select v-model="test" class="form-select" :options="this.customAction.Tests" /> | ||
</li> | ||
|
||
<li style="margin-top: 10px" v-bind:key="index" v-for="(env, index) in this.customAction.Env"> | ||
<pre style="margin-bottom: 0px">{{ env.Description }}</pre> | ||
<b-form-input class="autotest-env" :name="env.Name" :value="env.Default" /> | ||
</li> | ||
</ul> | ||
</div> | ||
</template> | ||
<script> | ||
export default { | ||
props: ["customAction"], | ||
data() { | ||
return { | ||
test: "", | ||
} | ||
}, | ||
mounted() { | ||
if (this.customAction.Tests.length == 1) { | ||
this.test = this.customAction.Tests[0]; | ||
} | ||
}, | ||
methods: { | ||
getInput() { | ||
const inputCollection = document.getElementsByClassName("autotest-env"); | ||
let selectedEnv = {}; | ||
for (let i = 0; i < inputCollection.length; i++) { | ||
selectedEnv[inputCollection[i].name] = inputCollection[i].value; | ||
} | ||
return { | ||
Ref: this.$refs.autotestBranch.selected, | ||
Test: this.test, | ||
Env: selectedEnv, | ||
} | ||
} | ||
} | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters