mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-01 04:10:06 -05:00
improved import page actions
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user