mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-07-24 15:49:42 +02:00
fix: remove edit scale icon when not scalable (#4849)
This commit is contained in:
parent
d3c6106566
commit
688d07a5c8
1 changed files with 10 additions and 3 deletions
|
@ -4,11 +4,18 @@
|
||||||
<div>
|
<div>
|
||||||
<v-menu v-model="menu" :disabled="!canEditScale" offset-y top nudge-top="6" :close-on-content-click="false">
|
<v-menu v-model="menu" :disabled="!canEditScale" offset-y top nudge-top="6" :close-on-content-click="false">
|
||||||
<template #activator="{ on, attrs }">
|
<template #activator="{ on, attrs }">
|
||||||
<v-card class="pa-1 px-2" dark color="secondary darken-1" small v-bind="attrs" v-on="on">
|
<v-card
|
||||||
<v-icon small class="mr-2">{{ $globals.icons.edit }}</v-icon>
|
class="pa-1 px-2"
|
||||||
|
dark
|
||||||
|
color="secondary darken-1"
|
||||||
|
small
|
||||||
|
v-bind="attrs"
|
||||||
|
:style="{ cursor: canEditScale ? '' : 'default' }"
|
||||||
|
v-on="on"
|
||||||
|
>
|
||||||
|
<v-icon v-if="canEditScale" small class="mr-2">{{ $globals.icons.edit }}</v-icon>
|
||||||
<!-- eslint-disable-next-line vue/no-v-html -->
|
<!-- eslint-disable-next-line vue/no-v-html -->
|
||||||
<span v-html="yieldDisplay"></span>
|
<span v-html="yieldDisplay"></span>
|
||||||
|
|
||||||
</v-card>
|
</v-card>
|
||||||
</template>
|
</template>
|
||||||
<v-card min-width="300px">
|
<v-card min-width="300px">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue