Skip to content

Commit

Permalink
Web: Display generic 'unavailable' for thing with no available items
Browse files Browse the repository at this point in the history
  • Loading branch information
dillonfagan committed Aug 14, 2024
1 parent 81cedd1 commit 46e748c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion apps/web/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@library_os/web",
"version": "0.15.4",
"version": "0.15.5",
"private": true,
"scripts": {
"dev": "vite dev",
Expand Down
2 changes: 2 additions & 0 deletions apps/web/src/lib/components/things/ThingDetails.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
<div class="text-right text-xl">{new Date(thing.availableDate).toLocaleDateString($locale)}</div>
{:else if thing.stock === 0}
<div class="font-display text-neutral-500">{$t('Wanted')}</div>
{:else if thing.available === 0}
<div class="font-display text-neutral-500">{$t('Unavailable')}</div>
{:else}
<div class="font-display text-neutral-500">{$t('Available')}</div>
{/if}
Expand Down

0 comments on commit 46e748c

Please sign in to comment.