Add using x of x when limit > 0

Added a using x of x so the end user knows how many they have and are using.
This commit is contained in:
Charles Morgan
2020-06-02 23:27:10 -04:00
parent 48869d2eda
commit e3ac933591

View File

@@ -37,6 +37,11 @@ export default () => {
return (
<PageContentBlock>
<FlashMessageRender byKey={'backups'} className={'mb-4'}/>
{featureLimits.backups >= 0 &&
<p className="text-center text-md text-neutral-400">
You are currently using {backups.length} of {featureLimits.backups} backups.
</p>
}
{!backups.length ?
<p className="text-center text-sm text-neutral-400">
There are no backups stored for this server.