harden document vault action buttons

This commit is contained in:
2026-09-06 17:02:53 +03:00
parent f3d12d37d3
commit 9f84986696
+4 -4
View File
@@ -165,7 +165,7 @@ const DocumentVaultSession = ({signedIn}) => {
return (
<div className="space-y-6 animate-fade-in">
{hata && <button onClick={yukle} className="px-4 py-2 border rounded-lg">Yeniden dene</button>}
{hata && <button type="button" onClick={yukle} className="px-4 py-2 border rounded-lg">Yeniden dene</button>}
<div className="bg-linear-to-r from-slate-900 via-teal-950 to-cyan-900 text-white p-6 rounded-2xl shadow-lg border border-teal-800/40">
<div className="flex items-center gap-3">
<div className="w-12 h-12 rounded-2xl bg-teal-600 flex items-center justify-center shadow-md">
@@ -331,18 +331,18 @@ const DocumentVaultSession = ({signedIn}) => {
</div>
<div className="flex flex-wrap items-center gap-1">
{d.tur === 'ihale' && d.ikn && readableDocument(d.ad) && (
<button onClick={() => yenidenIsle(d)} disabled={busy || !d.erisilebilir}
<button type="button" onClick={() => yenidenIsle(d)} disabled={busy || !d.erisilebilir}
aria-label={`${d.ad} için kalem çıkarımını yeniden dene`}
className="text-[10px] text-blue-700 font-bold disabled:opacity-40">
Kalemleri yeniden çıkar
</button>
)}
<button onClick={() => indir(d)} disabled={downloading.includes(d.id) || d.erisilebilir===false}
<button type="button" onClick={() => indir(d)} disabled={downloading.includes(d.id) || d.erisilebilir===false}
aria-label={`${d.ad} indir`} aria-busy={downloading.includes(d.id)}
className="text-slate-400 hover:text-teal-600 p-1 disabled:opacity-40" title="İndir">
{downloading.includes(d.id) ? <span role="status" className="text-xs">İndiriliyor…</span> : <Download className="w-4 h-4" />}
</button>
<button onClick={() => sil(d.id)} disabled={busy} className="text-slate-400 hover:text-red-500 p-1" title="Sil">
<button type="button" onClick={() => sil(d.id)} disabled={busy} className="text-slate-400 hover:text-red-500 p-1" title="Sil">
<Trash2 className="w-4 h-4" />
</button>
</div>