mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 21:16:00 +00:00
connections UX
This commit is contained in:
@@ -32,6 +32,7 @@
|
||||
<FormStyledButton
|
||||
value={`Show ${database}`}
|
||||
skipWidth
|
||||
outline
|
||||
on:click={() => {
|
||||
$focusedConnectionOrDatabase = {
|
||||
conid,
|
||||
@@ -59,6 +60,7 @@
|
||||
<FormStyledButton
|
||||
value={`Show ${getConnectionLabel(connection)}`}
|
||||
skipWidth
|
||||
outline
|
||||
on:click={() => {
|
||||
$focusedConnectionOrDatabase = {
|
||||
conid,
|
||||
|
||||
@@ -139,7 +139,11 @@
|
||||
</script>
|
||||
|
||||
{#if $status && $status.name == 'error'}
|
||||
<WidgetsInnerContainer>
|
||||
{#if differentFocusedDb}
|
||||
<FocusedConnectionInfoWidget {conid} {database} connection={$connection} />
|
||||
{/if}
|
||||
|
||||
<WidgetsInnerContainer hideContent={differentFocusedDb}>
|
||||
<ErrorInfo message={$status.message} icon="img error" />
|
||||
<InlineButton on:click={handleRefreshDatabase}>Refresh</InlineButton>
|
||||
</WidgetsInnerContainer>
|
||||
@@ -152,7 +156,11 @@
|
||||
{database}
|
||||
{driver}
|
||||
/>
|
||||
<WidgetsInnerContainer>
|
||||
{#if differentFocusedDb}
|
||||
<FocusedConnectionInfoWidget {conid} {database} connection={$connection} />
|
||||
{/if}
|
||||
|
||||
<WidgetsInnerContainer hideContent={differentFocusedDb}>
|
||||
<ErrorInfo
|
||||
message={`Database ${database} is empty or structure is not loaded, press Refresh button to reload structure`}
|
||||
icon="img alert"
|
||||
|
||||
Reference in New Issue
Block a user