diff --git a/mathesar_ui/src/pages/database-connection/DatabaseConnectionsList.svelte b/mathesar_ui/src/pages/database-connection/DatabaseConnectionsList.svelte index 468979efca..ea4e810d49 100644 --- a/mathesar_ui/src/pages/database-connection/DatabaseConnectionsList.svelte +++ b/mathesar_ui/src/pages/database-connection/DatabaseConnectionsList.svelte @@ -12,7 +12,6 @@ import EntityContainerWithFilterBar from '@mathesar/components/EntityContainerWithFilterBar.svelte'; import { AnchorButton, Icon } from '@mathesar/component-library'; import { labeledCount } from '@mathesar/utils/languageUtils'; - import { isSuccessfullyConnectedDatabase } from '@mathesar/utils/database'; import DatabaseConnectionSkeleton from './DatabaseConnectionSkeleton.svelte'; import { makeSimplePageTitle } from '../pageTitleUtils'; import DatabaseConnectionItem from './DatabaseConnectionItem.svelte'; @@ -24,9 +23,6 @@ $: databasesLoadError = $databases.error; function isMatch(database: Database, q: string) { - if (!isSuccessfullyConnectedDatabase(database)) { - return database.name.toLowerCase().includes(q); - } return ( database.name.toLowerCase().includes(q) || database.db_name.toLowerCase().includes(q) diff --git a/mathesar_ui/src/pages/database-connection/EditDatabaseConnection.svelte b/mathesar_ui/src/pages/database-connection/EditDatabaseConnection.svelte index d6f90bb731..7421bb87c5 100644 --- a/mathesar_ui/src/pages/database-connection/EditDatabaseConnection.svelte +++ b/mathesar_ui/src/pages/database-connection/EditDatabaseConnection.svelte @@ -1,19 +1,27 @@ + +{#if database} + + + + +{/if} diff --git a/mathesar_ui/src/pages/database/ConnectionError.svelte b/mathesar_ui/src/pages/database/ConnectionError.svelte index ff4a59372b..9f3c307a30 100644 --- a/mathesar_ui/src/pages/database/ConnectionError.svelte +++ b/mathesar_ui/src/pages/database/ConnectionError.svelte @@ -1,4 +1,5 @@ -

Error connecting to the database

+

{database.error}

diff --git a/mathesar_ui/src/pages/database/DatabaseDetails.svelte b/mathesar_ui/src/pages/database/DatabaseDetails.svelte index e395b6fb88..96d652dc6e 100644 --- a/mathesar_ui/src/pages/database/DatabaseDetails.svelte +++ b/mathesar_ui/src/pages/database/DatabaseDetails.svelte @@ -185,7 +185,7 @@ icon={iconDeleteMajor} on:click={() => deleteConnectionModal.open()} > - Delete Connection + Disconnect Database {/if} @@ -199,7 +199,7 @@

Schemas ({schemasMap.size})

{#if !isSuccessfullyConnectedDatabase(database)} - + {:else}