ui: separate authentication settings
All checks were successful
Deploy Dzen assistant / deploy (push) Successful in 24s
All checks were successful
Deploy Dzen assistant / deploy (push) Successful in 24s
This commit is contained in:
parent
d052578b21
commit
70f6b8287a
1 changed files with 14 additions and 4 deletions
|
|
@ -953,10 +953,6 @@ function SettingsPanel({ onBack, onSaved }: { onBack: () => void; onSaved: (sett
|
||||||
<ArrowLeft data-icon="inline-start" />
|
<ArrowLeft data-icon="inline-start" />
|
||||||
К роликам
|
К роликам
|
||||||
</Button>
|
</Button>
|
||||||
<Button disabled={passkeyBusy || loading} onClick={registerPasskey} variant="outline">
|
|
||||||
{passkeyBusy ? <Loader2 className="animate-spin" data-icon="inline-start" /> : <Fingerprint data-icon="inline-start" />}
|
|
||||||
Добавить биометрию
|
|
||||||
</Button>
|
|
||||||
<Button disabled={saving || loading || !dirty} onClick={saveSettings}>
|
<Button disabled={saving || loading || !dirty} onClick={saveSettings}>
|
||||||
{saving ? <Loader2 className="animate-spin" data-icon="inline-start" /> : <Save data-icon="inline-start" />}
|
{saving ? <Loader2 className="animate-spin" data-icon="inline-start" /> : <Save data-icon="inline-start" />}
|
||||||
Сохранить
|
Сохранить
|
||||||
|
|
@ -1078,6 +1074,20 @@ function SettingsPanel({ onBack, onSaved }: { onBack: () => void; onSaved: (sett
|
||||||
</CardContent>
|
</CardContent>
|
||||||
</Card>
|
</Card>
|
||||||
) : null}
|
) : null}
|
||||||
|
{!loading ? (
|
||||||
|
<Card>
|
||||||
|
<CardHeader>
|
||||||
|
<CardTitle>Настройки авторизации</CardTitle>
|
||||||
|
<CardDescription>Зарегистрируйте это устройство для входа по Face ID, Touch ID или другой доступной биометрии.</CardDescription>
|
||||||
|
</CardHeader>
|
||||||
|
<CardContent>
|
||||||
|
<Button disabled={passkeyBusy} onClick={registerPasskey} variant="outline">
|
||||||
|
{passkeyBusy ? <Loader2 className="animate-spin" data-icon="inline-start" /> : <Fingerprint data-icon="inline-start" />}
|
||||||
|
Добавить биометрию
|
||||||
|
</Button>
|
||||||
|
</CardContent>
|
||||||
|
</Card>
|
||||||
|
) : null}
|
||||||
</section>
|
</section>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue