{ saveHandler(); }} >
{$i18n.t('Database')}
{ const file = e.target.files[0]; const reader = new FileReader(); reader.onload = async (e) => { const res = await importConfig(localStorage.token, JSON.parse(e.target.result)).catch( (error) => { toast.error(error); } ); if (res) { toast.success('Config imported successfully'); } e.target.value = null; }; reader.readAsText(file); }} />
{#if $config?.features.enable_admin_export ?? true}
{/if}