Remove from end user

Removed max connections from the end user view.
This commit is contained in:
Charles Morgan 2020-04-24 10:17:31 -04:00
parent e3303f7a60
commit 56a0989176
2 changed files with 0 additions and 9 deletions

View File

@ -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,
});

View File

@ -51,9 +51,6 @@ export default ({ database, className }: Props) => {
addError({ key: 'database:delete', message: httpErrorToHuman(error) });
});
};
if (!database.maxConnections){
database.maxConnections = "Unlimited"
}
return (
<React.Fragment>
@ -154,10 +151,6 @@ export default ({ database, className }: Props) => {
<p className={'text-sm'}>{database.username}</p>
<p className={'mt-1 text-2xs text-neutral-500 uppercase select-none'}>Username</p>
</div>
<div className={'ml-8 text-center'}>
<p className={'text-sm'}>{database.maxConnections}</p>
<p className={'mt-1 text-2xs text-neutral-500 uppercase select-none'}>Max Connections</p>
</div>
<div className={'ml-8'}>
<button className={'btn btn-sm btn-secondary mr-2'} onClick={() => setConnectionVisible(true)}>
<FontAwesomeIcon icon={faEye} fixedWidth={true}/>