export working

This commit is contained in:
Jan Prochazka
2021-03-13 12:04:33 +01:00
parent 423f876d68
commit 8770034bf5
12 changed files with 281 additions and 40 deletions

View File

@@ -0,0 +1,20 @@
<script lang="ts">
import { getFormContext } from '../forms/FormProviderCore.svelte';
import SelectField from '../forms/SelectField.svelte';
import { extensions } from '../stores';
import { getActionOptions } from './createImpExpScript';
export let name;
export let targetDbinfo;
const { values, setFieldValue } = getFormContext();
$: options = getActionOptions($extensions, name, $values, targetDbinfo);
</script>
<SelectField
{options}
isNative
value={values[`actionType_${name}`] || options[0].value}
on:change={e => setFieldValue(`actionType_${name}`, e.detail)}
/>