show import links

This commit is contained in:
vabene1111
2022-06-20 16:52:42 +02:00
parent 11cb40702d
commit e7976fab46
2 changed files with 5 additions and 1 deletions

View File

@@ -69,7 +69,7 @@
v-if="recipe.imported !== undefined && recipe.imported"
target="_blank">{{
recipe.recipe_name
}}</a> <span v-else>{{ recipe.recipe_name }}</span>
}}</a> <a target="_blank" :href="`${resolveDjangoUrl('view_search') }?query=${recipe.recipe_name}`" v-else>{{ recipe.recipe_name }}</a>
<b-badge class="float-right text-white">{{ index + 1 }}</b-badge>
</h5>
<p class="mb-0">

View File

@@ -1133,6 +1133,10 @@ export default {
}
}
if (urlParams.has("query")) {
this.search.search_input = urlParams.get('query')
}
// TODO: figure out how to find nested items and load keyword/food children for that branch
// probably a backend change in facets to pre-load children of nested items
for (let x of this.search.search_foods.map((x) => x.items).flat()) {