Skip to content

Commit

Permalink
disable quickimport if no data is present
Browse files Browse the repository at this point in the history
  • Loading branch information
vabene1111 committed Jan 19, 2025
1 parent 54f2e26 commit a56c7c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vue3/src/pages/RecipeImportPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
<v-btn @click="stepper = (parseInt(stepper) - 1).toString()">Zurück</v-btn>
</template>
<template #next>
<v-btn @click="createRecipeFromImport()" color="success" :disabled="false" v-if="stepper == '1'">{{$t('Import')}}</v-btn>
<v-btn @click="createRecipeFromImport()" color="success" :disabled="Object.keys(importResponse).length == 0" v-if="stepper == '1'">{{$t('Import')}}</v-btn>
<v-btn @click="stepper = (parseInt(stepper) + 1).toString()" :disabled="Object.keys(importResponse).length == 0" v-if="stepper != '5'">
{{stepper == '1' ? $t('Edit') : $t('Next')}}
</v-btn>
Expand Down

0 comments on commit a56c7c2

Please sign in to comment.