-
-
Notifications
You must be signed in to change notification settings - Fork 763
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Add 'No Shopping Lists Found' message #4661
Changes from 2 commits
5e62118
5111f0e
26e1814
f8a6012
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -21,6 +21,12 @@ | |||||
<BaseButton create @click="createDialog = true" /> | ||||||
</v-container> | ||||||
|
||||||
<v-container v-if="shoppingListChoices.length === 0"> | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is a nitpick, no need to change, but for the sake of learning FYI this also works: <v-container v-if="!shoppingListChoices.length"> It's preference, but this way is more typical There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No, that's great feedback, I will change it. I'm new to Vue so every bit of "for the sake of learning" is helpful, thank you. |
||||||
<BasePageTitle> | ||||||
<template #title>{{ $t('shopping-list.no-shopping-list-found') }}</template> | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
</BasePageTitle> | ||||||
</v-container> | ||||||
|
||||||
<section> | ||||||
<v-card | ||||||
v-for="list in shoppingListChoices" | ||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this looks better without the period, since it's standalone text. Also want to make sure the key matches the text