diff --git a/resources/scripts/components/server/backups/BackupContainer.tsx b/resources/scripts/components/server/backups/BackupContainer.tsx index 438c201fb..7e719aab9 100644 --- a/resources/scripts/components/server/backups/BackupContainer.tsx +++ b/resources/scripts/components/server/backups/BackupContainer.tsx @@ -12,7 +12,7 @@ import { ServerContext } from '@/state/server'; import PageContentBlock from '@/components/elements/PageContentBlock'; export default () => { - const { uuid } = useServer(); + const { uuid, featureLimits } = useServer(); const { addError, clearFlashes } = useFlash(); const [ loading, setLoading ] = useState(true); @@ -37,6 +37,11 @@ export default () => { return ( + {featureLimits.backups !== 0 && +

+ You are currently using {backups.length} of {featureLimits.backups} backups. +

+ } {!backups.length ?

There are no backups stored for this server. @@ -50,10 +55,17 @@ export default () => { />)} } + {featureLimits.backups === 0 && +

+ Backups cannot be created for this server. +

+ } + {featureLimits.backups > 0 && featureLimits.backups !== backups.length &&
+ }
);