fix: 🐛 env var is not required and securize submit

This commit is contained in:
Michel Roux 2024-11-06 15:17:34 +01:00
parent 9eaf451213
commit 62be326197

View File

@ -43,7 +43,6 @@
v-model="environment"
class="textarea"
placeholder="DURATION=60s"
required
></textarea>
</div>
</div>
@ -75,7 +74,7 @@ export default {
return {
custom_name: null as string | null,
image: null as string | null,
environment: null as string | null,
environment: '',
error: '',
loading: false,
}
@ -107,6 +106,7 @@ export default {
},
methods: {
async submit() {
if (!this.image || !(this.custom_name ?? this.container_name)) return
try {
this.loading = true
const { data } = await axios.post<Container>(