fix: TTLock — revert to 2-field credentials, improve UI hints

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-02 11:38:07 +03:00
parent 84ead2af99
commit a7b59c4881
2 changed files with 9 additions and 9 deletions

View File

@@ -391,21 +391,21 @@ export function TTLockPage() {
<div className="grid grid-cols-2 gap-4"> <div className="grid grid-cols-2 gap-4">
<div> <div>
<label className="form-label">Client ID</label> <label className="form-label">Client ID <span className="font-normal text-slate-400">(из TTHotel Интеграция с PMS)</span></label>
<input <input
type="text" type="text"
value={clientId} value={clientId}
onChange={e => setClientId(e.target.value)} onChange={e => setClientId(e.target.value)}
placeholder="Из TTHotel → Настройки → Интеграции" placeholder="0004e6c0cdb64324..."
className="input w-full font-mono text-sm" className="input w-full font-mono text-sm"
/> />
</div> </div>
<div> <div>
<label className="form-label">Client Secret</label> <label className="form-label">Client Secret <span className="font-normal text-slate-400">(нажмите «Просмотр» в TTHotel)</span></label>
<PasswordInput <PasswordInput
value={clientSecret} value={clientSecret}
onChange={setClientSecret} onChange={setClientSecret}
placeholder={config?.clientId ? '••••••• (не изменится)' : 'Из TTHotel → Интеграции → Показать'} placeholder={config?.clientId ? '••••••• (не изменится)' : 'Нажмите «Просмотр» в TTHotel → Интеграция с PMS'}
/> />
</div> </div>
</div> </div>