mirror of
https://github.com/dbgate/dbgate
synced 2024-11-07 20:26:23 +00:00
connection label fixes
This commit is contained in:
parent
2f42319d2b
commit
b87e53b704
@ -26,6 +26,7 @@
|
|||||||
import ModalBase from './ModalBase.svelte';
|
import ModalBase from './ModalBase.svelte';
|
||||||
import { closeCurrentModal, showModal } from './modalTools';
|
import { closeCurrentModal, showModal } from './modalTools';
|
||||||
import { callServerPing } from '../utility/connectionsPinger';
|
import { callServerPing } from '../utility/connectionsPinger';
|
||||||
|
import { getConnectionLabel } from 'dbgate-tools';
|
||||||
|
|
||||||
export let conid;
|
export let conid;
|
||||||
export let passwordMode;
|
export let passwordMode;
|
||||||
@ -47,13 +48,13 @@
|
|||||||
$values = {
|
$values = {
|
||||||
...$values,
|
...$values,
|
||||||
user: connection.user,
|
user: connection.user,
|
||||||
server: connection.server,
|
connectionLabel: getConnectionLabel(connection),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
if (passwordMode == 'askUser') {
|
if (passwordMode == 'askUser') {
|
||||||
$values = {
|
$values = {
|
||||||
...$values,
|
...$values,
|
||||||
server: connection.server,
|
connectionLabel: getConnectionLabel(connection),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -98,7 +99,7 @@
|
|||||||
<ModalBase {...$$restProps} simple>
|
<ModalBase {...$$restProps} simple>
|
||||||
<svelte:fragment slot="header">Database Log In ({engineTitle})</svelte:fragment>
|
<svelte:fragment slot="header">Database Log In ({engineTitle})</svelte:fragment>
|
||||||
|
|
||||||
<FormTextField label="Server" name="server" disabled />
|
<FormTextField label="Connection" name="connectionLabel" disabled />
|
||||||
<FormTextField
|
<FormTextField
|
||||||
label="Username"
|
label="Username"
|
||||||
name="user"
|
name="user"
|
||||||
|
Loading…
Reference in New Issue
Block a user