1
0
Fork 0
mirror of https://github.com/mealie-recipes/mealie.git synced 2025-07-24 07:39:41 +02:00

fix: Remove Unused Transfer Option from Shopping List (#4436)

Co-authored-by: Kuchenpirat <24235032+Kuchenpirat@users.noreply.github.com>
This commit is contained in:
Michael Genson 2024-10-24 11:07:12 -05:00 committed by GitHub
parent 2305438423
commit 302002d630
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 1 additions and 24 deletions

View file

@ -17,25 +17,15 @@
</v-icon>
</v-btn>
</template>
<v-list dense>
<v-list-item v-for="action in contextMenu" :key="action.event" dense @click="contextHandler(action.event)">
<v-list-item-title>{{ action.text }}</v-list-item-title>
</v-list-item>
</v-list>
</v-menu>
</div>
</div>
</template>
<script lang="ts">
import { defineComponent, ref, useContext } from "@nuxtjs/composition-api";
import { defineComponent, ref } from "@nuxtjs/composition-api";
import { ShoppingListMultiPurposeLabelOut } from "~/lib/api/types/household";
interface actions {
text: string;
event: string;
}
export default defineComponent({
props: {
value: {
@ -48,23 +38,14 @@ export default defineComponent({
}
},
setup(props, context) {
const { i18n } = useContext();
const labelColor = ref<string | undefined>(props.useColor ? props.value.label.color : undefined);
const contextMenu: actions[] = [
{
text: i18n.t("general.transfer") as string,
event: "transfer",
},
];
function contextHandler(event: string) {
context.emit(event);
}
return {
contextHandler,
contextMenu,
labelColor,
};
},