Skip to content

Commit

Permalink
#18: If an item has a category, show it on the second line
Browse files Browse the repository at this point in the history
  • Loading branch information
proofrock committed Mar 1, 2024
1 parent e34bd4f commit 8cbc3f9
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions frontend/src/components/orderpage/Item.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,13 @@
>
<div class="card-content sm-cell-smallcell">
<span class="card-title">
<b>{itm.item}</b>
<b
>{#if itm.subitem === null || itm.subitem === ""}
{itm.item}
{:else}
{itm.subitem}
{/if}</b
>
<span class="right">
{#if qty === 0}
--
Expand All @@ -84,7 +90,7 @@
{#if itm.subitem === null || itm.subitem === ""}
&nbsp;
{:else}
{itm.subitem}
{itm.item}
{/if}
</span>
<span class="right">
Expand Down

0 comments on commit 8cbc3f9

Please sign in to comment.