diff --git a/vue/src/apps/RecipeView/RecipeView.vue b/vue/src/apps/RecipeView/RecipeView.vue
index 4968f0b40..16b22e5d7 100644
--- a/vue/src/apps/RecipeView/RecipeView.vue
+++ b/vue/src/apps/RecipeView/RecipeView.vue
@@ -38,7 +38,7 @@
{{ $t("Preparation") }}
- {{ recipe.working_time }} {{ $t("min") }}
+ {{ working_time }}
@@ -50,7 +50,7 @@
{{ $t("Waiting") }}
- {{ recipe.waiting_time }} {{ $t("min") }}
+ {{ waiting_time }}
@@ -160,7 +160,7 @@ import "bootstrap-vue/dist/bootstrap-vue.css"
import {apiLoadRecipe} from "@/utils/api"
import RecipeContextMenu from "@/components/RecipeContextMenu"
-import {ResolveUrlMixin, ToastMixin} from "@/utils/utils"
+import {ResolveUrlMixin, ToastMixin, calculateHourMinuteSplit} from "@/utils/utils"
import PdfViewer from "@/components/PdfViewer"
import ImageViewer from "@/components/ImageViewer"
@@ -206,6 +206,10 @@ export default {
ingredient_count() {
return this.recipe?.steps.map((x) => x.ingredients).flat().length
},
+ working_time: function() {
+ return calculateHourMinuteSplit(this.recipe.working_time)},
+ waiting_time: function() {
+ return calculateHourMinuteSplit(this.recipe.waiting_time)},
},
data() {
return {
diff --git a/vue/src/components/RecipeCard.vue b/vue/src/components/RecipeCard.vue
index 80cbcdb25..13a68a366 100755
--- a/vue/src/components/RecipeCard.vue
+++ b/vue/src/components/RecipeCard.vue
@@ -8,8 +8,8 @@
- {{ recipe.working_time }} {{ $t("min") }}
- {{ recipe.waiting_time }} {{ $t("min") }}
+ {{ working_time }}
+ {{ waiting_time }}
@@ -59,7 +59,7 @@