mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-22 19:16:01 +00:00
14 lines
704 B
Svelte
14 lines
704 B
Svelte
<script lang="ts">
|
|
import FormTextField from '../forms/FormTextField.svelte';
|
|
import { openedConnections, openedSingleDatabaseConnections } from '../stores';
|
|
import { getFormContext } from '../forms/FormProviderCore.svelte';
|
|
import FormTextAreaField from '../forms/FormTextAreaField.svelte';
|
|
|
|
const { values } = getFormContext();
|
|
|
|
$: isConnected = $openedConnections.includes($values._id) || $openedSingleDatabaseConnections.includes($values._id);
|
|
</script>
|
|
|
|
<FormTextAreaField label="Allowed databases, one per line" name="allowedDatabases" disabled={isConnected} rows={8} />
|
|
<FormTextField label="Allowed databases regular expression" name="allowedDatabasesRegex" disabled={isConnected} />
|