mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-04 09:39:23 +00:00
groups: only show invitations if there are any (was previously
iterating empty array)
This commit is contained in:
parent
38781cc012
commit
01b9a420b8
1 changed files with 8 additions and 4 deletions
|
|
@ -35,10 +35,14 @@
|
|||
<div class="tab-content">
|
||||
|
||||
<div class='tab-pane active' id='groups-guilds-public'>
|
||||
{#each _user.invitations.guilds as :invitation}
|
||||
<h3>You're Invited To {:invitation.name}</h3>
|
||||
<a class='btn btn-success' data-type='guild' x-bind="click:acceptInvitation">Accept</a>
|
||||
<a class='btn btn-danger' x-bind="click:rejectInvitation">Reject</a>
|
||||
{#if _user.invitations.guilds}
|
||||
{#each _user.invitations.guilds as :invitation}
|
||||
<div>
|
||||
<h3>You're Invited To {:invitation.name}</h3>
|
||||
<a class='btn btn-success' data-type='guild' x-bind="click:acceptInvitation">Accept</a>
|
||||
<a class='btn btn-danger' x-bind="click:rejectInvitation">Reject</a>
|
||||
</div>
|
||||
{/}
|
||||
{/}
|
||||
<app:groups:public-groups />
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in a new issue