first working number scaling

This commit is contained in:
vabene1111
2024-03-05 16:40:10 +01:00
parent 9fe3eeb823
commit 302faa193a
4 changed files with 146 additions and 3 deletions

View File

@@ -19,8 +19,8 @@
<IngredientsTable :ingredients="step.ingredients"></IngredientsTable>
<v-card-text v-if="step.instruction?.length > 0">
{{ step.instruction }}
<v-card-text v-if="step.instructionsMarkdown.length > 0">
<instructions-compile-component :code="step.instructionsMarkdown" :ingredient_factor="1"></instructions-compile-component>
</v-card-text>
</v-card>
</template>
@@ -31,6 +31,8 @@ import IngredientsTable from "@/components/display/IngredientsTable.vue";
import {Step} from "@/openapi";
import {DateTime, Duration, Interval} from "luxon";
import InstructionsCompileComponent from "@/components/display/InstructionsCompileComponent.vue";
export default defineComponent({
name: "Step",
computed: {
@@ -59,7 +61,7 @@ export default defineComponent({
return ''
}
},
components: {IngredientsTable},
components: {InstructionsCompileComponent, IngredientsTable},
props: {
step: {
type: {} as PropType<Step>,