diff --git a/frontend/src/app/components/connect-db/connect-db.component.html b/frontend/src/app/components/connect-db/connect-db.component.html index dba77f8cb..bb8f90288 100644 --- a/frontend/src/app/components/connect-db/connect-db.component.html +++ b/frontend/src/app/components/connect-db/connect-db.component.html @@ -30,14 +30,9 @@

[disabled]="submitting" [(ngModel)]="db.type" (ngModelChange)="dbTypeChange()" > - MySQL - PostgreSQL - MongoDB - DynamoDB - Cassandra - Oracle - MS SQL - IBM DB2 + + {{supportedDatabasesTitles[dbType]}} + diff --git a/frontend/src/app/components/connect-db/connect-db.component.ts b/frontend/src/app/components/connect-db/connect-db.component.ts index 14fd4b51a..a70e6ee3d 100644 --- a/frontend/src/app/components/connect-db/connect-db.component.ts +++ b/frontend/src/app/components/connect-db/connect-db.component.ts @@ -44,6 +44,7 @@ import { UserService } from 'src/app/services/user.service'; import { environment } from 'src/environments/environment'; import googlIPsList from 'src/app/consts/google-IP-addresses'; import isIP from 'validator/lib/isIP'; +import { supportedDatabasesTitles, supportedOrderedDatabases } from 'src/app/consts/databases'; @Component({ selector: 'app-connect-db', @@ -90,6 +91,8 @@ export class ConnectDBComponent implements OnInit { message: null } + public supportedOrderedDatabases = supportedOrderedDatabases; + public supportedDatabasesTitles = supportedDatabasesTitles; public ports = { [DBtype.MySQL]: '3306', [DBtype.Postgres]: '5432', diff --git a/frontend/src/app/components/connect-db/db-credentials-forms/cassandra-credentials-form/cassandra-credentials-form.component.html b/frontend/src/app/components/connect-db/db-credentials-forms/cassandra-credentials-form/cassandra-credentials-form.component.html index 3ab92cbf0..b340a513d 100644 --- a/frontend/src/app/components/connect-db/db-credentials-forms/cassandra-credentials-form/cassandra-credentials-form.component.html +++ b/frontend/src/app/components/connect-db/db-credentials-forms/cassandra-credentials-form/cassandra-credentials-form.component.html @@ -4,14 +4,14 @@ data-testid="connection-hostname-input" angulartics2On="change" angularticsAction="Connection creds {{ connection.id ? 'edit' : 'add' }}: hostname is edited" - required hostnameValidator="mongodb" + required hostnameValidator [readonly]="(accessLevel === 'readonly' || connection.isTestConnection) && connection.id" [disabled]="submitting" [(ngModel)]="connection.host"> - E.g. mongodb+srv://my-test-db.8a8grvb.mongoconnection.net. - Connections from internal IPs (e.g. localhost) are not supported. + E.g. cassandra.us-west-1.amazonaws.com
+ Connections from internal IPs (e.g. localhost) are not supported
diff --git a/frontend/src/app/components/connections-list/own-connections/own-connections.component.css b/frontend/src/app/components/connections-list/own-connections/own-connections.component.css index fdbdc8f59..4f3747bf9 100644 --- a/frontend/src/app/components/connections-list/own-connections/own-connections.component.css +++ b/frontend/src/app/components/connections-list/own-connections/own-connections.component.css @@ -211,6 +211,7 @@ @media (width <= 600px) { .connectionItem { flex: initial; + max-width: 100%; } } diff --git a/frontend/src/app/consts/databases.ts b/frontend/src/app/consts/databases.ts index a7c017b50..a422ba9bf 100644 --- a/frontend/src/app/consts/databases.ts +++ b/frontend/src/app/consts/databases.ts @@ -16,6 +16,6 @@ export const supportedDatabasesTitles = { dynamodb: "DynamoDB", cassandra: "Cassandra", oracledb: "OracleDB", - mssql: "MSSQL", + mssql: "SQL Server", ibmdb2: "IBM DB2" } \ No newline at end of file diff --git a/frontend/src/assets/icons/db-logos/db2.svg b/frontend/src/assets/icons/db-logos/db2_logo.svg similarity index 100% rename from frontend/src/assets/icons/db-logos/db2.svg rename to frontend/src/assets/icons/db-logos/db2_logo.svg diff --git a/frontend/src/assets/icons/dynamodb_logo.svg b/frontend/src/assets/icons/db-logos/dynamodb_logo.svg similarity index 100% rename from frontend/src/assets/icons/dynamodb_logo.svg rename to frontend/src/assets/icons/db-logos/dynamodb_logo.svg