ask for send data

This commit is contained in:
SPRINX0\prochazka
2025-02-10 12:44:29 +01:00
parent ae8e46e024
commit f6b52592fd
2 changed files with 9 additions and 0 deletions

View File

@@ -410,6 +410,14 @@ ORDER BY
{ value: 'download', label: 'Check and download new versions' }, { value: 'download', label: 'Check and download new versions' },
]} ]}
/> />
{#if isProApp()}
<FormCheckboxField
name="ai.allowSendModels"
label="Allow to send DB models and query snippets to AI service"
defaultValue={false}
/>
{/if}
</svelte:fragment> </svelte:fragment>
<svelte:fragment slot="7"> <svelte:fragment slot="7">

View File

@@ -115,6 +115,7 @@ export const currentEditorFontSize = getElectron()
? writableSettingsValue(null, 'currentEditorFontSize') ? writableSettingsValue(null, 'currentEditorFontSize')
: writableWithStorage(null, 'currentEditorFontSize'); : writableWithStorage(null, 'currentEditorFontSize');
export const currentEditorFont = writableSettingsValue(null, 'editor.fontFamily'); export const currentEditorFont = writableSettingsValue(null, 'editor.fontFamily');
export const allowedSendToAiService = writableSettingsValue(false, 'ai.allowSendModels');
export const activeTabId = derived([openedTabs], ([$openedTabs]) => $openedTabs.find(x => x.selected)?.tabid); export const activeTabId = derived([openedTabs], ([$openedTabs]) => $openedTabs.find(x => x.selected)?.tabid);
export const activeTab = derived([openedTabs], ([$openedTabs]) => $openedTabs.find(x => x.selected)); export const activeTab = derived([openedTabs], ([$openedTabs]) => $openedTabs.find(x => x.selected));
export const recentDatabases = writableWithStorage([], 'recentDatabases'); export const recentDatabases = writableWithStorage([], 'recentDatabases');