diff --git a/frontend/src/components/recipe-mobile/recipe-list.vue b/frontend/src/components/recipe-mobile/recipe-list.vue
index 0b6e018..c54461a 100644
--- a/frontend/src/components/recipe-mobile/recipe-list.vue
+++ b/frontend/src/components/recipe-mobile/recipe-list.vue
@@ -17,9 +17,12 @@
}"
>
- {{
- constants.formatRecipeType(recipe.recipe_type)
- }}
+ {{ constants.formatRecipeType(recipe.recipe_type) }}
{{ recipe.name }}
@@ -46,7 +49,7 @@ export default {
[CollapseItem.name]: CollapseItem,
[Icon.name]: Icon,
},
- data: function() {
+ data: function () {
return {
loading: false,
finished: false,
@@ -57,6 +60,13 @@ export default {
constants: constants,
is_link: true,
activeNames: ['1'],
+ getTagType: function (recipe_type) {
+ return {
+ [constants.RECIPE_TYPE_MEAT]: 'primary',
+ [constants.RECIPE_TYPE_VEGETABLE]: 'success',
+ [constants.RECIPE_TYPE_SOUP]: 'warning',
+ }[recipe_type];
+ },
};
},
mounted() {},