Skip to content

Commit

Permalink
fix: front invitations delete siblings and in:out effects on empty (#241
Browse files Browse the repository at this point in the history
)
  • Loading branch information
ramiroaisen authored Jan 9, 2024
2 parents 72d87d9 + 8bdddca commit 228693e
Showing 1 changed file with 5 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,8 @@
if(each.is_expired) continue;
if(each.state !== "pending") continue;
if(each.id === item.id) continue;
if(each.account_id !== item.account_id) {
ids.add(each.id);
}
if(each.account_id !== item.account_id) continue;
ids.add(each.id);
}
await Promise.all([...ids].map(async id => {
Expand Down Expand Up @@ -180,7 +179,7 @@
}
.invitation:nth-child(even) {
background: rgba(0,0,0,0.05);
background: rgba(0,0,0,0.025);
}
.invitation-actions {
Expand Down Expand Up @@ -224,11 +223,11 @@
{$locale.pages['me/invitations'].head.title}
</div>
{#if current.length === 0}
<div class="empty-message">
<div class="empty-message" transition:slide|local={{ duration: 400 }}>
{$locale.pages['me/invitations'].no_items_message}
</div>
{:else}
<div class="list">
<div class="list" transition:slide|local={{ duration: 400 }}>
{#each current as item (item.id)}
<div class="invitation" data-invitation-id={item.id} transition:slide|local={{ duration: 400 }}>
<div class="invitation-data">
Expand Down

0 comments on commit 228693e

Please sign in to comment.