mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-05-24 01:12:54 -04:00
fix: only show scaler when ingredients amounts enabled (#1426)
This commit is contained in:
parent
efffe26a19
commit
c865bc7769
@ -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="[
|
||||
|
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user