We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0baa74a + 8dca214 commit 7e0efbdCopy full SHA for 7e0efbd
1 file changed
resources/scripts/components/server/backups/BackupContainer.tsx
@@ -65,12 +65,12 @@ const BackupContainer = () => {
65
}
66
<Can action={'backup.create'}>
67
<div css={tw`mt-6 sm:flex items-center justify-end`}>
68
- {(backupLimit > 0 && backups.items.length > 0) &&
+ {(backupLimit > 0 && backups.pagination.total > 0) &&
69
<p css={tw`text-sm text-neutral-300 mb-4 sm:mr-6 sm:mb-0`}>
70
- {backups.items.length} of {backupLimit} backups have been created for this server.
+ {backups.pagination.total} of {backupLimit} backups have been created for this server.
71
</p>
72
73
- {backupLimit > 0 && backupLimit !== backups.items.length &&
+ {backupLimit > 0 && backupLimit !== backups.pagination.total &&
74
<CreateBackupButton css={tw`w-full sm:w-auto`}/>
75
76
</div>
0 commit comments