From b2cce9195a2016300fede874d738d5068642580f Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Sun, 19 Jan 2020 13:54:39 -0800 Subject: [PATCH] Only show creation button if the server can actually have databases --- .../components/server/databases/DatabasesContainer.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/resources/scripts/components/server/databases/DatabasesContainer.tsx b/resources/scripts/components/server/databases/DatabasesContainer.tsx index d01ae1fef..30136423f 100644 --- a/resources/scripts/components/server/databases/DatabasesContainer.tsx +++ b/resources/scripts/components/server/databases/DatabasesContainer.tsx @@ -53,12 +53,18 @@ export default () => { )) :

- 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.` + }

} + {server.featureLimits.databases > 0 &&
+ } }