mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-25 02:56:00 +00:00
behaviour settings changed
This commit is contained in:
@@ -1,59 +1,61 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import FormCheckboxField from "../forms/FormCheckboxField.svelte";
|
import FormCheckboxField from '../forms/FormCheckboxField.svelte';
|
||||||
import { _t } from "../translations";
|
import { _t } from '../translations';
|
||||||
import FontIcon from '../icons/FontIcon.svelte';
|
import FontIcon from '../icons/FontIcon.svelte';
|
||||||
import FormValues from "../forms/FormValues.svelte";
|
import FormValues from '../forms/FormValues.svelte';
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="wrapper">
|
<div class="wrapper">
|
||||||
<FormValues let:values>
|
<FormValues let:values>
|
||||||
<div class="heading">{_t('settings.behaviour', { defaultMessage: 'Behaviour' })}</div>
|
<div class="heading">{_t('settings.behaviour', { defaultMessage: 'Behaviour' })}</div>
|
||||||
|
|
||||||
<FormCheckboxField
|
<FormCheckboxField
|
||||||
name="behaviour.useTabPreviewMode"
|
name="behaviour.jsonPreviewWrap"
|
||||||
label={_t('settings.behaviour.useTabPreviewMode', { defaultMessage: 'Use tab preview mode' })}
|
label={_t('settings.behaviour.jsonPreviewWrap', { defaultMessage: 'Wrap JSON in preview' })}
|
||||||
defaultValue={true}
|
defaultValue={false}
|
||||||
data-testid="BehaviourSettings_useTabPreviewMode"
|
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<FormCheckboxField
|
<FormCheckboxField
|
||||||
name="behaviour.jsonPreviewWrap"
|
name="behaviour.openDetailOnArrows"
|
||||||
label={_t('settings.behaviour.jsonPreviewWrap', { defaultMessage: 'Wrap JSON in preview' })}
|
label={_t('settings.behaviour.openDetailOnArrows', {
|
||||||
defaultValue={false}
|
defaultMessage: 'Open detail on keyboard navigation',
|
||||||
|
})}
|
||||||
|
defaultValue={true}
|
||||||
|
disabled={values['behaviour.useTabPreviewMode'] === false}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
<div class="heading">{_t('settings.tabPreviewMode', { defaultMessage: 'Tab Preview Mode' })}</div>
|
||||||
|
|
||||||
<div class="tip">
|
<div class="tip">
|
||||||
<FontIcon icon="img tip" />
|
<FontIcon icon="img tip" />
|
||||||
{_t('settings.behaviour.singleClickPreview', {
|
{_t('settings.behaviour.singleClickPreview', {
|
||||||
defaultMessage:
|
defaultMessage:
|
||||||
'When you single-click or select a file in the "Tables, Views, Functions" view, it is shown in a preview mode and reuses an existing tab (preview tab). This is useful if you are quickly browsing tables and don\'t want every visited table to have its own tab. When you start editing the table or use double-click to open the table from the "Tables" view, a new tab is dedicated to that table.',
|
'When you single-click or select a file in the "Tables, Views, Functions" view, it is shown in a preview mode and reuses an existing tab (preview tab). This is useful if you are quickly browsing tables and don\'t want every visited table to have its own tab. When you start editing the table or use double-click to open the table from the "Tables" view, a new tab is dedicated to that table.',
|
||||||
})}
|
})}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<FormCheckboxField
|
<FormCheckboxField
|
||||||
name="behaviour.openDetailOnArrows"
|
name="behaviour.useTabPreviewMode"
|
||||||
label={_t('settings.behaviour.openDetailOnArrows', {
|
label={_t('settings.behaviour.useTabPreviewMode', { defaultMessage: 'Use tab preview mode' })}
|
||||||
defaultMessage: 'Open detail on keyboard navigation',
|
defaultValue={true}
|
||||||
})}
|
data-testid="BehaviourSettings_useTabPreviewMode"
|
||||||
defaultValue={true}
|
|
||||||
disabled={values['behaviour.useTabPreviewMode'] === false}
|
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<div class="heading">{_t('settings.confirmations', { defaultMessage: 'Confirmations' })}</div>
|
<div class="heading">{_t('settings.confirmations', { defaultMessage: 'Confirmations' })}</div>
|
||||||
|
|
||||||
<FormCheckboxField
|
<FormCheckboxField
|
||||||
name="skipConfirm.tableDataSave"
|
name="skipConfirm.tableDataSave"
|
||||||
label={_t('settings.confirmations.skipConfirm.tableDataSave', {
|
label={_t('settings.confirmations.skipConfirm.tableDataSave', {
|
||||||
defaultMessage: 'Skip confirmation when saving table data (SQL)',
|
defaultMessage: 'Skip confirmation when saving table data (SQL)',
|
||||||
})}
|
})}
|
||||||
/>
|
/>
|
||||||
<FormCheckboxField
|
<FormCheckboxField
|
||||||
name="skipConfirm.collectionDataSave"
|
name="skipConfirm.collectionDataSave"
|
||||||
label={_t('settings.confirmations.skipConfirm.collectionDataSave', {
|
label={_t('settings.confirmations.skipConfirm.collectionDataSave', {
|
||||||
defaultMessage: 'Skip confirmation when saving collection data (NoSQL)',
|
defaultMessage: 'Skip confirmation when saving collection data (NoSQL)',
|
||||||
})}
|
})}
|
||||||
/>
|
/>
|
||||||
</FormValues>
|
</FormValues>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
@@ -68,4 +70,4 @@
|
|||||||
margin-left: var(--dim-large-form-margin);
|
margin-left: var(--dim-large-form-margin);
|
||||||
margin-top: var(--dim-large-form-margin);
|
margin-top: var(--dim-large-form-margin);
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user