Skip to content

Commit

Permalink
fixes to feed element
Browse files Browse the repository at this point in the history
  • Loading branch information
zippy committed Jul 16, 2024
1 parent 2736986 commit c96fca4
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions ui/src/FeedElement.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,9 @@
{/if}
{#if delta.type == "add-card"}
added
{context
? `to ${context.group.name}`
: ""}
{#if context}
to <strong>${context.group.name}</strong>
{/if}
{/if}
{#if delta.type == "update-card-group"}
{@const card = getCard(delta.id)}
Expand Down Expand Up @@ -183,7 +183,9 @@
{#if card}
{@const list = card.checklists[delta.checklistId]}
added item "{delta.item.text}"
{list ? `:${list.title}` : ""}
{#if list}
:<strong>{list.title}</strong>
{/if}
{:else}
added checklist item {delta.item.text} to card <span class="deleted-card">{context.card}</span>
{/if}
Expand All @@ -208,7 +210,7 @@
{@const list = card.checklists[delta.checklistId]}
{#if list}
{@const item = list.items[delta.itemId]}
set item {item ? ` "${item.text}"` : ""} <strong>{list.title}</strong>
set item {#if item}{item.text}{/if} <strong>{list.title}</strong>
to {itemStateStr}
{:else}
set item from deleted checklist
Expand Down

0 comments on commit c96fca4

Please sign in to comment.