Merge pull request #2089 from Sir3lit/changedatabases
Database page edits, Shows message x of x databases when limit > 0, removes create button once limit is reached.
This commit is contained in:
commit
173b75d44d
1 changed files with 6 additions and 1 deletions
|
@ -36,6 +36,11 @@ export default () => {
|
|||
return (
|
||||
<PageContentBlock>
|
||||
<FlashMessageRender byKey={'databases'} className={'mb-4'}/>
|
||||
{featureLimits.databases !== 0 &&
|
||||
<p className="text-center text-md text-neutral-400">
|
||||
You are currently using {databases.length} of {featureLimits.databases} databases.
|
||||
</p>
|
||||
}
|
||||
{(!databases.length && loading) ?
|
||||
<Spinner size={'large'} centered={true}/>
|
||||
:
|
||||
|
@ -59,7 +64,7 @@ export default () => {
|
|||
</p>
|
||||
}
|
||||
<Can action={'database.create'}>
|
||||
{featureLimits.databases > 0 &&
|
||||
{featureLimits.databases > 0 && featureLimits.databases !== databases.length &&
|
||||
<div className={'mt-6 flex justify-end'}>
|
||||
<CreateDatabaseButton/>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue