Skip to content

Commit b2cce91

Browse files
committed
Only show creation button if the server can actually have databases
1 parent dbc7c59 commit b2cce91

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

resources/scripts/components/server/databases/DatabasesContainer.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,18 @@ export default () => {
5353
))
5454
:
5555
<p className={'text-center text-sm text-neutral-400'}>
56-
It looks like you have no databases. Click the button below to create one now.
56+
{server.featureLimits.databases > 0 ?
57+
`It looks like you have no databases. Click the button below to create one now.`
58+
:
59+
`Databases cannot be created for this server.`
60+
}
5761
</p>
5862
}
63+
{server.featureLimits.databases > 0 &&
5964
<div className={'mt-6 flex justify-end'}>
6065
<CreateDatabaseButton onCreated={appendDatabase}/>
6166
</div>
67+
}
6268
</React.Fragment>
6369
</CSSTransition>
6470
}

0 commit comments

Comments
 (0)