mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-08-04 13:05:21 +02:00
fix: style of recipe actions to be compliant with design schema (#5736)
This commit is contained in:
parent
e638df37d1
commit
88d0b466ce
3 changed files with 18 additions and 21 deletions
|
@ -125,25 +125,20 @@
|
||||||
</v-list-item>
|
</v-list-item>
|
||||||
<div v-if="useItems.recipeActions && recipeActions && recipeActions.length">
|
<div v-if="useItems.recipeActions && recipeActions && recipeActions.length">
|
||||||
<v-divider />
|
<v-divider />
|
||||||
<v-list-group @click.stop>
|
<v-list-item
|
||||||
<template #activator="{ props }">
|
v-for="(action, index) in recipeActions"
|
||||||
<v-list-item-title v-bind="props">
|
:key="index"
|
||||||
{{ $t("recipe.recipe-actions") }}
|
@click="executeRecipeAction(action)"
|
||||||
</v-list-item-title>
|
>
|
||||||
|
<template #prepend>
|
||||||
|
<v-icon color="undefined">
|
||||||
|
{{ $globals.icons.linkVariantPlus }}
|
||||||
|
</v-icon>
|
||||||
</template>
|
</template>
|
||||||
<v-list density="compact" class="ma-0 pa-0">
|
<v-list-item-title>
|
||||||
<v-list-item
|
{{ action.title }}
|
||||||
v-for="(action, index) in recipeActions"
|
</v-list-item-title>
|
||||||
:key="index"
|
</v-list-item>
|
||||||
class="pl-6"
|
|
||||||
@click="executeRecipeAction(action)"
|
|
||||||
>
|
|
||||||
<v-list-item-title>
|
|
||||||
{{ action.title }}
|
|
||||||
</v-list-item-title>
|
|
||||||
</v-list-item>
|
|
||||||
</v-list>
|
|
||||||
</v-list-group>
|
|
||||||
</div>
|
</div>
|
||||||
</v-list>
|
</v-list>
|
||||||
</v-menu>
|
</v-menu>
|
||||||
|
|
|
@ -151,6 +151,7 @@ import {
|
||||||
mdiKnife,
|
mdiKnife,
|
||||||
mdiCookie,
|
mdiCookie,
|
||||||
mdiBellPlus,
|
mdiBellPlus,
|
||||||
|
mdiLinkVariantPlus,
|
||||||
} from "@mdi/js";
|
} from "@mdi/js";
|
||||||
|
|
||||||
export const icons = {
|
export const icons = {
|
||||||
|
@ -236,6 +237,7 @@ export const icons = {
|
||||||
informationOutline: mdiInformationOutline,
|
informationOutline: mdiInformationOutline,
|
||||||
informationVariant: mdiInformationVariant,
|
informationVariant: mdiInformationVariant,
|
||||||
link: mdiLink,
|
link: mdiLink,
|
||||||
|
linkVariantPlus: mdiLinkVariantPlus,
|
||||||
lock: mdiLock,
|
lock: mdiLock,
|
||||||
logout: mdiLogout,
|
logout: mdiLogout,
|
||||||
menu: mdiMenu,
|
menu: mdiMenu,
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<BaseDialog
|
<BaseDialog
|
||||||
v-model="state.createDialog"
|
v-model="state.createDialog"
|
||||||
:title="$t('data-pages.recipe-actions.new-recipe-action')"
|
:title="$t('data-pages.recipe-actions.new-recipe-action')"
|
||||||
:icon="$globals.icons.primary"
|
:icon="$globals.icons.linkVariantPlus"
|
||||||
can-submit
|
can-submit
|
||||||
@submit="createAction"
|
@submit="createAction"
|
||||||
>
|
>
|
||||||
|
@ -34,7 +34,7 @@
|
||||||
<!-- Edit Dialog -->
|
<!-- Edit Dialog -->
|
||||||
<BaseDialog
|
<BaseDialog
|
||||||
v-model="state.editDialog"
|
v-model="state.editDialog"
|
||||||
:icon="$globals.icons.primary"
|
:icon="$globals.icons.linkVariantPlus"
|
||||||
:title="$t('data-pages.recipe-actions.edit-recipe-action')"
|
:title="$t('data-pages.recipe-actions.edit-recipe-action')"
|
||||||
:submit-text="$t('general.save')"
|
:submit-text="$t('general.save')"
|
||||||
can-submit
|
can-submit
|
||||||
|
@ -115,7 +115,7 @@
|
||||||
|
|
||||||
<!-- Data Table -->
|
<!-- Data Table -->
|
||||||
<BaseCardSectionTitle
|
<BaseCardSectionTitle
|
||||||
:icon="$globals.icons.primary"
|
:icon="$globals.icons.linkVariantPlus"
|
||||||
section
|
section
|
||||||
:title="$t('data-pages.recipe-actions.recipe-actions-data')"
|
:title="$t('data-pages.recipe-actions.recipe-actions-data')"
|
||||||
/>
|
/>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue