fix: 🐛 env var is not required and securize submit
This commit is contained in:
parent
9eaf451213
commit
62be326197
@ -43,7 +43,6 @@
|
|||||||
v-model="environment"
|
v-model="environment"
|
||||||
class="textarea"
|
class="textarea"
|
||||||
placeholder="DURATION=60s"
|
placeholder="DURATION=60s"
|
||||||
required
|
|
||||||
></textarea>
|
></textarea>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -75,7 +74,7 @@ export default {
|
|||||||
return {
|
return {
|
||||||
custom_name: null as string | null,
|
custom_name: null as string | null,
|
||||||
image: null as string | null,
|
image: null as string | null,
|
||||||
environment: null as string | null,
|
environment: '',
|
||||||
error: '',
|
error: '',
|
||||||
loading: false,
|
loading: false,
|
||||||
}
|
}
|
||||||
@ -107,6 +106,7 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
async submit() {
|
async submit() {
|
||||||
|
if (!this.image || !(this.custom_name ?? this.container_name)) return
|
||||||
try {
|
try {
|
||||||
this.loading = true
|
this.loading = true
|
||||||
const { data } = await axios.post<Container>(
|
const { data } = await axios.post<Container>(
|
||||||
|
Loading…
Reference in New Issue
Block a user