mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 00:56:02 +00:00
fix - don't show update mode in web
This commit is contained in:
@@ -14,13 +14,10 @@
|
|||||||
const electron = getElectron();
|
const electron = getElectron();
|
||||||
let restartWarning = false;
|
let restartWarning = false;
|
||||||
</script>
|
</script>
|
||||||
<div class="wrapper">
|
|
||||||
|
|
||||||
|
<div class="wrapper">
|
||||||
<div class="heading">{_t('settings.application', { defaultMessage: 'Application' })}</div>
|
<div class="heading">{_t('settings.application', { defaultMessage: 'Application' })}</div>
|
||||||
<FormFieldTemplateLarge
|
<FormFieldTemplateLarge label={_t('settings.localization.language', { defaultMessage: 'Language' })} type="combo">
|
||||||
label={_t('settings.localization.language', { defaultMessage: 'Language' })}
|
|
||||||
type="combo"
|
|
||||||
>
|
|
||||||
<SelectField
|
<SelectField
|
||||||
isNative
|
isNative
|
||||||
data-testid="SettingsModal_languageSelect"
|
data-testid="SettingsModal_languageSelect"
|
||||||
@@ -51,9 +48,10 @@
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</FormFieldTemplateLarge>
|
</FormFieldTemplateLarge>
|
||||||
|
|
||||||
|
{#if electron}
|
||||||
<FormSelectField
|
<FormSelectField
|
||||||
label={_t('settings.other.autoUpdateApplication', { defaultMessage: 'Auto update application' })}
|
label={_t('settings.other.autoUpdateApplication', { defaultMessage: 'Auto update application' })}
|
||||||
name="app.autoUpdateMode"
|
name="app.autoUpdateMode"
|
||||||
@@ -78,11 +76,11 @@
|
|||||||
},
|
},
|
||||||
]}
|
]}
|
||||||
/>
|
/>
|
||||||
|
{/if}
|
||||||
|
|
||||||
<div class="heading">{_t('settings.appearance', { defaultMessage: 'Appearance' })}</div>
|
<div class="heading">{_t('settings.appearance', { defaultMessage: 'Appearance' })}</div>
|
||||||
|
|
||||||
{#if electron}
|
{#if electron}
|
||||||
|
|
||||||
<FormCheckboxField
|
<FormCheckboxField
|
||||||
name="app.useNativeMenu"
|
name="app.useNativeMenu"
|
||||||
label={isMac()
|
label={isMac()
|
||||||
@@ -109,7 +107,6 @@
|
|||||||
})}
|
})}
|
||||||
defaultValue={false}
|
defaultValue={false}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
@@ -120,8 +117,7 @@
|
|||||||
margin-top: var(--dim-large-form-margin);
|
margin-top: var(--dim-large-form-margin);
|
||||||
}
|
}
|
||||||
|
|
||||||
.wrapper :global(select){
|
.wrapper :global(select) {
|
||||||
max-width: 400px;
|
max-width: 400px;
|
||||||
}
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
Reference in New Issue
Block a user