Few UI improvements.

fix #2928
This commit is contained in:
Antoine Nguyen
2023-04-21 11:08:47 +02:00
parent 699d4a0608
commit 794238bbdd
10 changed files with 67 additions and 28 deletions
@@ -57,8 +57,9 @@
<div class="d-flex justify-center mt-8">
<v-btn
color="primary"
@click="$emit('create')"
@click="create"
large
:loading="working"
>
<translate>Confirm and create</translate>
</v-btn>
@@ -89,12 +90,14 @@ export default {
},
data () {
return {
currentStep: 1
currentStep: 1,
working: false
}
},
methods: {
resetForm () {
this.currentStep = 1
this.working = false
this.steps.forEach((item, index) => {
const observer = this.formObserverGetter(index + 1)
if (observer !== undefined) {
@@ -139,6 +142,10 @@ export default {
}
}
this.currentStep = next
},
create () {
this.working = true
this.$emit('create')
}
}
}