mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-07-09 03:04:54 -04:00
fix: added limited context menu for public users (#2138)
This commit is contained in:
parent
5562effd66
commit
09e58b36af
@ -22,23 +22,25 @@
|
|||||||
<v-spacer></v-spacer>
|
<v-spacer></v-spacer>
|
||||||
<div v-if="!open" class="custom-btn-group ma-1">
|
<div v-if="!open" class="custom-btn-group ma-1">
|
||||||
<RecipeFavoriteBadge v-if="loggedIn" class="mx-1" color="info" button-style :slug="recipe.slug" show-always />
|
<RecipeFavoriteBadge v-if="loggedIn" class="mx-1" color="info" button-style :slug="recipe.slug" show-always />
|
||||||
<RecipeTimelineBadge button-style :slug="recipe.slug" :recipe-name="recipe.name" />
|
<RecipeTimelineBadge v-if="loggedIn" button-style :slug="recipe.slug" :recipe-name="recipe.name" />
|
||||||
<v-tooltip v-if="!locked" bottom color="info">
|
<div v-if="loggedIn">
|
||||||
<template #activator="{ on, attrs }">
|
<v-tooltip v-if="!locked" bottom color="info">
|
||||||
<v-btn fab small class="mx-1" color="info" v-bind="attrs" v-on="on" @click="$emit('edit', true)">
|
<template #activator="{ on, attrs }">
|
||||||
<v-icon> {{ $globals.icons.edit }} </v-icon>
|
<v-btn fab small class="mx-1" color="info" v-bind="attrs" v-on="on" @click="$emit('edit', true)">
|
||||||
</v-btn>
|
<v-icon> {{ $globals.icons.edit }} </v-icon>
|
||||||
</template>
|
</v-btn>
|
||||||
<span>{{ $t("general.edit") }}</span>
|
</template>
|
||||||
</v-tooltip>
|
<span>{{ $t("general.edit") }}</span>
|
||||||
<v-tooltip v-else bottom color="info">
|
</v-tooltip>
|
||||||
<template #activator="{ on, attrs }">
|
<v-tooltip v-else bottom color="info">
|
||||||
<v-btn fab small class="mx-1" color="info" v-bind="attrs" v-on="on">
|
<template #activator="{ on, attrs }">
|
||||||
<v-icon> {{ $globals.icons.lock }} </v-icon>
|
<v-btn fab small class="mx-1" color="info" v-bind="attrs" v-on="on">
|
||||||
</v-btn>
|
<v-icon> {{ $globals.icons.lock }} </v-icon>
|
||||||
</template>
|
</v-btn>
|
||||||
<span> {{ $t("recipe.locked-by-owner") }} </span>
|
</template>
|
||||||
</v-tooltip>
|
<span> {{ $t("recipe.locked-by-owner") }} </span>
|
||||||
|
</v-tooltip>
|
||||||
|
</div>
|
||||||
|
|
||||||
<RecipeContextMenu
|
<RecipeContextMenu
|
||||||
show-print
|
show-print
|
||||||
@ -56,14 +58,13 @@
|
|||||||
:use-items="{
|
:use-items="{
|
||||||
delete: false,
|
delete: false,
|
||||||
edit: false,
|
edit: false,
|
||||||
download: true,
|
download: loggedIn,
|
||||||
duplicate: true,
|
duplicate: loggedIn,
|
||||||
mealplanner: true,
|
mealplanner: loggedIn,
|
||||||
shoppingList: true,
|
shoppingList: loggedIn,
|
||||||
print: true,
|
print: true,
|
||||||
printPreferences: true,
|
share: loggedIn,
|
||||||
share: true,
|
publicUrl: recipe.settings && loggedIn ? recipe.settings.public : false,
|
||||||
publicUrl: recipe.settings ? recipe.settings.public : false,
|
|
||||||
}"
|
}"
|
||||||
@print="$emit('print')"
|
@print="$emit('print')"
|
||||||
/>
|
/>
|
||||||
|
@ -42,7 +42,6 @@
|
|||||||
</div>
|
</div>
|
||||||
<v-divider></v-divider>
|
<v-divider></v-divider>
|
||||||
<RecipeActionMenu
|
<RecipeActionMenu
|
||||||
v-if="user.id"
|
|
||||||
:recipe="recipe"
|
:recipe="recipe"
|
||||||
:slug="recipe.slug"
|
:slug="recipe.slug"
|
||||||
:recipe-scale="recipeScale"
|
:recipe-scale="recipeScale"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user