ui: move settings actions into header
All checks were successful
Deploy Dzen assistant / deploy (push) Successful in 28s
All checks were successful
Deploy Dzen assistant / deploy (push) Successful in 28s
This commit is contained in:
parent
ecfb01fccb
commit
d052578b21
1 changed files with 14 additions and 14 deletions
|
|
@ -948,10 +948,20 @@ function SettingsPanel({ onBack, onSaved }: { onBack: () => void; onSaved: (sett
|
|||
<h2 className="text-xl font-semibold tracking-normal">Настройки</h2>
|
||||
<p className="text-sm text-muted-foreground">Общая подпись и дополнительные правила редактора.</p>
|
||||
</div>
|
||||
<Button variant="outline" onClick={onBack}>
|
||||
<ArrowLeft data-icon="inline-start" />
|
||||
К роликам
|
||||
</Button>
|
||||
<div className="flex flex-wrap items-center justify-end gap-2">
|
||||
<Button variant="outline" onClick={onBack}>
|
||||
<ArrowLeft data-icon="inline-start" />
|
||||
К роликам
|
||||
</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}>
|
||||
{saving ? <Loader2 className="animate-spin" data-icon="inline-start" /> : <Save data-icon="inline-start" />}
|
||||
Сохранить
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
<ToastNotice message={message} onClose={() => setMessage("")} />
|
||||
{loading ? (
|
||||
|
|
@ -1068,16 +1078,6 @@ function SettingsPanel({ onBack, onSaved }: { onBack: () => void; onSaved: (sett
|
|||
</CardContent>
|
||||
</Card>
|
||||
) : null}
|
||||
<div className="flex justify-end gap-2">
|
||||
<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}>
|
||||
{saving ? <Loader2 className="animate-spin" data-icon="inline-start" /> : <Save data-icon="inline-start" />}
|
||||
Сохранить
|
||||
</Button>
|
||||
</div>
|
||||
</section>
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue