improved import page actions

This commit is contained in:
vabene1111
2025-01-19 19:28:26 +01:00
parent 1e5c656e51
commit 842f5bed81

View File

@@ -175,11 +175,6 @@
<v-number-input :label="$t('Servings')" v-model="importResponse.recipe.servings"></v-number-input>
<v-text-field :label="$t('ServingsText')" v-model="importResponse.recipe.servingsText"></v-text-field>
<v-textarea :label="$t('Description')" v-model="importResponse.recipe.description" clearable></v-textarea>
<v-btn class="mt-5" size="large" @click="createRecipeFromImport()" color="success" :loading="loading || fileApiLoading">{{
$t('Import')
}}
</v-btn>
</v-col>
</v-row>
@@ -187,11 +182,14 @@
</v-stepper-window-item>
</v-stepper-window>
<v-stepper-actions @click:next="next"
@click:prev="prev"
:next-text="$t('Next')"
:prev-text="$t('Back')"
:disabled="Object.keys(importResponse).length == 0">
<v-stepper-actions >
<template #prev>
<v-btn @click="stepper = (parseInt(stepper) - 1).toString()">Zurück</v-btn>
</template>
<template #next>
<v-btn @click="stepper = (parseInt(stepper) + 1).toString()" :disabled="Object.keys(importResponse).length == 0" v-if="stepper != '5'">{{$t('Next')}}</v-btn>
<v-btn @click="createRecipeFromImport()" color="success" :disabled="false" v-if="stepper == '5'">{{$t('Import')}}</v-btn>
</template>
</v-stepper-actions>
</template>