Display a message if the invitations list is empty.

For #887
This commit is contained in:
Massedil
2025-11-05 17:50:06 +01:00
committed by setop
parent cea2235321
commit 1a2f366561
3 changed files with 11 additions and 7 deletions

View File

@@ -51,13 +51,15 @@
groupInvitationsError?.message
}}</o-notification>
</div>
<div
v-else-if="
groupInvitationsResult &&
groupInvitationsResult.listInvitations.length
"
>
<o-table :data="groupInvitationsResult.listInvitations">
<div v-else-if="groupInvitationsResult">
<div v-if="!groupInvitationsResult.listInvitations.length">
<o-notification type="info" variant="info">{{
t(
'No invitation yet. Create a new invitation with the button "New invitation".'
)
}}</o-notification>
</div>
<o-table v-else :data="groupInvitationsResult.listInvitations">
<o-table-column
field="label"
:label="t('Label')"