show recently added recipes in search

This commit is contained in:
vabene1111
2021-05-20 16:45:41 +02:00
parent 61d1528911
commit fe3e611dd1
11 changed files with 35 additions and 27 deletions

View File

@ -24,6 +24,7 @@
{{ recipe.description }}
<keywords :recipe="recipe" style="margin-top: 4px"></keywords>
<b-badge pill variant="info" v-if="!recipe.internal">{{ $t('External') }}</b-badge>
<b-badge pill variant="success" v-if="Date.parse(recipe.created_at) > new Date(Date.now() - (7 * (1000 * 60 * 60 * 24)))">{{ $t('New') }}</b-badge>
</template>
<template v-else>{{ meal_plan.note }}</template>
</b-card-text>