mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-03 13:19:16 -05:00
default state for external recipe
This commit is contained in:
@@ -29,8 +29,8 @@ const {getDjangoUrl} = useDjangoUrls()
|
||||
const panelState = ref('')
|
||||
|
||||
onMounted(() => {
|
||||
// open panel by default if recipe has not been converted to internal yet
|
||||
if (!props.recipe.internal) {
|
||||
// open panel by default if recipe has not been converted to internal yet or if it does not have any steps
|
||||
if (!props.recipe.internal || props.recipe.steps.length == 0) {
|
||||
panelState.value = 'show'
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user