Skip to content

Commit

Permalink
fix: Remove Unused Transfer Option from Shopping List (#4436)
Browse files Browse the repository at this point in the history
Co-authored-by: Kuchenpirat <24235032+Kuchenpirat@users.noreply.github.com>
  • Loading branch information
michael-genson and Kuchenpirat authored Oct 24, 2024
1 parent 2305438 commit 302002d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand All @@ -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,
};
},
Expand Down
4 changes: 0 additions & 4 deletions frontend/components/Domain/ShoppingList/ShoppingListItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -151,10 +151,6 @@ export default defineComponent({
text: i18n.t("general.delete") as string,
event: "delete",
},
{
text: i18n.t("general.transfer") as string,
event: "transfer",
},
];
// copy prop value so a refresh doesn't interrupt the user
Expand Down

0 comments on commit 302002d

Please sign in to comment.