Skip to content

Commit d9a1db5

Browse files
feat: Add 'No Shopping Lists Found' message (#4661)
Co-authored-by: Michael Genson <71845777+michael-genson@users.noreply.github.com>
1 parent 87504fb commit d9a1db5

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

frontend/components/Domain/Recipe/RecipeDialogAddToShoppingList.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
<template>
22
<div v-if="dialog">
33
<BaseDialog v-if="shoppingListDialog && ready" v-model="dialog" :title="$t('recipe.add-to-list')" :icon="$globals.icons.cartCheck">
4+
<v-container v-if="!shoppingListChoices.length">
5+
<BasePageTitle>
6+
<template #title>{{ $t('shopping-list.no-shopping-lists-found') }}</template>
7+
</BasePageTitle>
8+
</v-container>
49
<v-card-text>
510
<v-card
611
v-for="list in shoppingListChoices"

frontend/lang/messages/en-US.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -890,7 +890,8 @@
890890
"you-are-offline-description": "Not all features are available while offline. You can still add, modify, and remove items, but you will not be able to sync your changes to the server until you are back online.",
891891
"are-you-sure-you-want-to-check-all-items": "Are you sure you want to check all items?",
892892
"are-you-sure-you-want-to-uncheck-all-items": "Are you sure you want to uncheck all items?",
893-
"are-you-sure-you-want-to-delete-checked-items": "Are you sure you want to delete all checked items?"
893+
"are-you-sure-you-want-to-delete-checked-items": "Are you sure you want to delete all checked items?",
894+
"no-shopping-lists-found": "No Shopping Lists Found"
894895
},
895896
"sidebar": {
896897
"all-recipes": "All Recipes",

frontend/pages/shopping-lists/index.vue

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@
2121
<BaseButton create @click="createDialog = true" />
2222
</v-container>
2323

24+
<v-container v-if="!shoppingListChoices.length">
25+
<BasePageTitle>
26+
<template #title>{{ $t('shopping-list.no-shopping-lists-found') }}</template>
27+
</BasePageTitle>
28+
</v-container>
29+
2430
<section>
2531
<v-card
2632
v-for="list in shoppingListChoices"

0 commit comments

Comments
 (0)