Remove from end user
Removed max connections from the end user view.
This commit is contained in:
parent
e3303f7a60
commit
56a0989176
|
@ -6,7 +6,6 @@ export interface ServerDatabase {
|
||||||
username: string;
|
username: string;
|
||||||
connectionString: string;
|
connectionString: string;
|
||||||
allowConnectionsFrom: string;
|
allowConnectionsFrom: string;
|
||||||
maxConnections: string;
|
|
||||||
password?: string;
|
password?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -16,7 +15,6 @@ export const rawDataToServerDatabase = (data: any): ServerDatabase => ({
|
||||||
username: data.username,
|
username: data.username,
|
||||||
connectionString: `${data.host.address}:${data.host.port}`,
|
connectionString: `${data.host.address}:${data.host.port}`,
|
||||||
allowConnectionsFrom: data.connections_from,
|
allowConnectionsFrom: data.connections_from,
|
||||||
maxConnections: data.max_connections,
|
|
||||||
password: data.relationships && data.relationships.password ? data.relationships.password.attributes.password : undefined,
|
password: data.relationships && data.relationships.password ? data.relationships.password.attributes.password : undefined,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -51,9 +51,6 @@ export default ({ database, className }: Props) => {
|
||||||
addError({ key: 'database:delete', message: httpErrorToHuman(error) });
|
addError({ key: 'database:delete', message: httpErrorToHuman(error) });
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
if (!database.maxConnections){
|
|
||||||
database.maxConnections = "Unlimited"
|
|
||||||
}
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<React.Fragment>
|
<React.Fragment>
|
||||||
|
@ -154,10 +151,6 @@ export default ({ database, className }: Props) => {
|
||||||
<p className={'text-sm'}>{database.username}</p>
|
<p className={'text-sm'}>{database.username}</p>
|
||||||
<p className={'mt-1 text-2xs text-neutral-500 uppercase select-none'}>Username</p>
|
<p className={'mt-1 text-2xs text-neutral-500 uppercase select-none'}>Username</p>
|
||||||
</div>
|
</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'}>
|
<div className={'ml-8'}>
|
||||||
<button className={'btn btn-sm btn-secondary mr-2'} onClick={() => setConnectionVisible(true)}>
|
<button className={'btn btn-sm btn-secondary mr-2'} onClick={() => setConnectionVisible(true)}>
|
||||||
<FontAwesomeIcon icon={faEye} fixedWidth={true}/>
|
<FontAwesomeIcon icon={faEye} fixedWidth={true}/>
|
||||||
|
|
Loading…
Reference in New Issue