confirm sql modal - ability to open SQL script

This commit is contained in:
Jan Prochazka 2021-11-25 11:15:14 +01:00
parent aeea29f61d
commit 4f9566e630

View File

@ -6,6 +6,7 @@
import FormProviderCore from '../forms/FormProviderCore.svelte'; import FormProviderCore from '../forms/FormProviderCore.svelte';
import FormSubmit from '../forms/FormSubmit.svelte'; import FormSubmit from '../forms/FormSubmit.svelte';
import FontIcon from '../icons/FontIcon.svelte'; import FontIcon from '../icons/FontIcon.svelte';
import newQuery from '../query/newQuery';
import SqlEditor from '../query/SqlEditor.svelte'; import SqlEditor from '../query/SqlEditor.svelte';
import ModalBase from './ModalBase.svelte'; import ModalBase from './ModalBase.svelte';
@ -119,6 +120,17 @@
}} }}
/> />
<FormStyledButton type="button" value="Close" on:click={closeCurrentModal} /> <FormStyledButton type="button" value="Close" on:click={closeCurrentModal} />
<FormStyledButton
type="button"
value="Open script"
on:click={() => {
newQuery({
initialData: sql,
});
closeCurrentModal();
}}
/>
</div> </div>
</ModalBase> </ModalBase>
</FormProviderCore> </FormProviderCore>