Skip to content

Commit 56a0989

Browse files
Remove from end user
Removed max connections from the end user view.
1 parent e3303f7 commit 56a0989

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

resources/scripts/api/server/getServerDatabases.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ export interface ServerDatabase {
66
username: string;
77
connectionString: string;
88
allowConnectionsFrom: string;
9-
maxConnections: string;
109
password?: string;
1110
}
1211

@@ -16,7 +15,6 @@ export const rawDataToServerDatabase = (data: any): ServerDatabase => ({
1615
username: data.username,
1716
connectionString: `${data.host.address}:${data.host.port}`,
1817
allowConnectionsFrom: data.connections_from,
19-
maxConnections: data.max_connections,
2018
password: data.relationships && data.relationships.password ? data.relationships.password.attributes.password : undefined,
2119
});
2220

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

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,6 @@ export default ({ database, className }: Props) => {
5151
addError({ key: 'database:delete', message: httpErrorToHuman(error) });
5252
});
5353
};
54-
if (!database.maxConnections){
55-
database.maxConnections = "Unlimited"
56-
}
5754

5855
return (
5956
<React.Fragment>
@@ -154,10 +151,6 @@ export default ({ database, className }: Props) => {
154151
<p className={'text-sm'}>{database.username}</p>
155152
<p className={'mt-1 text-2xs text-neutral-500 uppercase select-none'}>Username</p>
156153
</div>
157-
<div className={'ml-8 text-center'}>
158-
<p className={'text-sm'}>{database.maxConnections}</p>
159-
<p className={'mt-1 text-2xs text-neutral-500 uppercase select-none'}>Max Connections</p>
160-
</div>
161154
<div className={'ml-8'}>
162155
<button className={'btn btn-sm btn-secondary mr-2'} onClick={() => setConnectionVisible(true)}>
163156
<FontAwesomeIcon icon={faEye} fixedWidth={true}/>

0 commit comments

Comments
 (0)