mirror of
https://github.com/sqlchat/sqlchat.git
synced 2025-07-30 10:43:06 +08:00
chore: update connection creation modal
This commit is contained in:
@ -32,7 +32,8 @@ const CreateConnectionModal = (props: Props) => {
|
||||
const [isRequesting, setIsRequesting] = useState(false);
|
||||
const showDatabaseField = connection.engineType === Engine.PostgreSQL;
|
||||
const isEditing = editConnection !== undefined;
|
||||
const allowSave = connection.host !== "" && connection.username !== "";
|
||||
const allowSave =
|
||||
connection.host !== "" && connection.username !== "" && (connection.engineType === Engine.PostgreSQL ? connection.database : true);
|
||||
|
||||
useEffect(() => {
|
||||
if (show) {
|
||||
|
Reference in New Issue
Block a user