Only show creation button if the server can actually have databases

This commit is contained in:
Dane Everitt 2020-01-19 13:54:39 -08:00
parent dbc7c597d0
commit b2cce9195a
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53

View file

@ -53,12 +53,18 @@ export default () => {
))
:
<p className={'text-center text-sm text-neutral-400'}>
It looks like you have no databases. Click the button below to create one now.
{server.featureLimits.databases > 0 ?
`It looks like you have no databases. Click the button below to create one now.`
:
`Databases cannot be created for this server.`
}
</p>
}
{server.featureLimits.databases > 0 &&
<div className={'mt-6 flex justify-end'}>
<CreateDatabaseButton onCreated={appendDatabase}/>
</div>
}
</React.Fragment>
</CSSTransition>
}