Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<template>
<v-form>
<v-text-field label="Commands" v-model="sha256_sum" />
<v-text-field v-if="selectedOption === 'create-container'" label="Container Name" v-model="containerName" />
<v-text-field v-if="selectedOption === 'run'" label="Command" v-model="command" />
<v-text-field v-if="selectedOption === 'artifacts'" label="Artifact Path" v-model="artifactPath" />
<v-text-field v-if="selectedOption === 'submit'" label="Path" v-model="path" />
<v-text-field v-if="selectedOption === 'version'" label="Version" v-model="version" />
<v-btn color="primary" @click="submitForm">Submit</v-btn>
</v-form>
</template>
<script>
export default {
data() {
return {
sha256_sum: '',
containerName: '',
command: '',
artifactPath: '',
path: '',
version: '',
selectedOption: ''
}
},
methods: {
submitForm() {
if (this.selectedOption === 'create-container') {
console.log("Creating container with name: " + this.containerName);
} else if (this.selectedOption === 'run') {
console.log("Running command: " + this.command);
} else if (this.selectedOption === 'artifacts') {
console.log("Retrieving artifacts from path: " + this.artifactPath);
} else if (this.selectedOption === 'submit') {
console.log("Submitting path: " + this.path);
} else if (this.selectedOption === 'version') {
console.log("Checking version: " + this.version);
} else {
console.log("SHA256_SUM: " + this.sha256_sum);
}
}
}
}
</script>