From 56a0989176a1eaed117cbcba0190974226ce5754 Mon Sep 17 00:00:00 2001 From: Charles Morgan Date: Fri, 24 Apr 2020 10:17:31 -0400 Subject: [PATCH] Remove from end user Removed max connections from the end user view. --- resources/scripts/api/server/getServerDatabases.ts | 2 -- .../scripts/components/server/databases/DatabaseRow.tsx | 7 ------- 2 files changed, 9 deletions(-) diff --git a/resources/scripts/api/server/getServerDatabases.ts b/resources/scripts/api/server/getServerDatabases.ts index 8ae6542aa..835964c27 100644 --- a/resources/scripts/api/server/getServerDatabases.ts +++ b/resources/scripts/api/server/getServerDatabases.ts @@ -6,7 +6,6 @@ export interface ServerDatabase { username: string; connectionString: string; allowConnectionsFrom: string; - maxConnections: string; password?: string; } @@ -16,7 +15,6 @@ export const rawDataToServerDatabase = (data: any): ServerDatabase => ({ username: data.username, connectionString: `${data.host.address}:${data.host.port}`, allowConnectionsFrom: data.connections_from, - maxConnections: data.max_connections, password: data.relationships && data.relationships.password ? data.relationships.password.attributes.password : undefined, }); diff --git a/resources/scripts/components/server/databases/DatabaseRow.tsx b/resources/scripts/components/server/databases/DatabaseRow.tsx index 424f4498c..9adc38519 100644 --- a/resources/scripts/components/server/databases/DatabaseRow.tsx +++ b/resources/scripts/components/server/databases/DatabaseRow.tsx @@ -51,9 +51,6 @@ export default ({ database, className }: Props) => { addError({ key: 'database:delete', message: httpErrorToHuman(error) }); }); }; - if (!database.maxConnections){ - database.maxConnections = "Unlimited" - } return ( @@ -154,10 +151,6 @@ export default ({ database, className }: Props) => {

{database.username}

Username

-
-

{database.maxConnections}

-

Max Connections

-