mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 15:25:59 +00:00
vfk dialog
This commit is contained in:
20
packages/web/src/elements/TargetApplicationSelect.svelte
Normal file
20
packages/web/src/elements/TargetApplicationSelect.svelte
Normal file
@@ -0,0 +1,20 @@
|
||||
<script lang="ts">
|
||||
import { map } from 'lodash';
|
||||
|
||||
import SelectField from '../forms/SelectField.svelte';
|
||||
import { useAppFolders } from '../utility/metadataLoaders';
|
||||
|
||||
$: apps = useAppFolders();
|
||||
</script>
|
||||
|
||||
<SelectField
|
||||
isNative
|
||||
{...$$restProps}
|
||||
options={[
|
||||
{ label: '(New application linked to current DB)', value: 'new' },
|
||||
...($apps || []).map(app => ({
|
||||
label: app.name,
|
||||
value: app.name,
|
||||
})),
|
||||
]}
|
||||
/>
|
||||
@@ -26,6 +26,7 @@
|
||||
import _ from 'lodash';
|
||||
import { useDatabaseInfo, useTableInfo } from '../utility/metadataLoaders';
|
||||
import { onMount } from 'svelte';
|
||||
import TargetApplicationSelect from '../elements/TargetApplicationSelect.svelte';
|
||||
|
||||
export let conid;
|
||||
export let database;
|
||||
@@ -142,15 +143,22 @@
|
||||
</div>
|
||||
</div>
|
||||
{/each}
|
||||
</div>
|
||||
|
||||
<FormStyledButton
|
||||
type="button"
|
||||
value="Add column"
|
||||
on:click={() => {
|
||||
columns = [...columns, {}];
|
||||
}}
|
||||
/>
|
||||
<FormStyledButton
|
||||
type="button"
|
||||
value="Add column"
|
||||
on:click={() => {
|
||||
columns = [...columns, {}];
|
||||
}}
|
||||
/>
|
||||
|
||||
<div class="row">
|
||||
<div class="label col-3">Target application</div>
|
||||
<div class="col-9">
|
||||
<TargetApplicationSelect />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<svelte:fragment slot="footer">
|
||||
<FormSubmit
|
||||
|
||||
Reference in New Issue
Block a user