fix: only show scaler when ingredients amounts enabled (#1426)

This commit is contained in:
Hayden 2022-06-19 10:27:32 -08:00 committed by GitHub
parent efffe26a19
commit c865bc7769
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -2,7 +2,7 @@
<div>
<div class="text-center d-flex align-center">
<div>
<v-menu v-model="menu" offset-y top nudge-top="6" :close-on-content-click="false">
<v-menu v-model="menu" :disabled="!editScale" offset-y top nudge-top="6" :close-on-content-click="false">
<template #activator="{ on, attrs }">
<v-card class="pa-1 px-2" dark color="secondary darken-1" small v-bind="attrs" v-on="on">
<span v-if="recipeYield"> {{ scaledYield }} </span>
@ -32,6 +32,7 @@
</v-menu>
</div>
<BaseButtonGroup
v-if="editScale"
class="pl-2"
:large="false"
:buttons="[

View File

@ -176,7 +176,7 @@
</div>
</div>
<div class="d-flex justify-space-between align-center pt-2 pb-3">
<v-tooltip v-if="!form" small top color="secondary darken-1">
<v-tooltip v-if="!form && recipe.recipeYield" small top color="secondary darken-1">
<template #activator="{ on, attrs }">
<RecipeScaleEditButton
v-model.number="scale"