deleçao de contas web

This commit is contained in:
2026-10-30 23:25:38 -03:00
parent 61fde19133
commit f0560b1be4
16 changed files with 1250 additions and 10 deletions

View File

@@ -158,6 +158,15 @@ export function AccountActions({ account, isSelf, users }: { account: Account; i
confirm={`Desativar a conta ${account.username}? As sessões abertas serão encerradas.`}
/>
))}
{!isSelf && (
<ActionButton
path={`/accounts/${account.id}`}
method="DELETE"
label="Excluir"
variant="danger"
confirm={`Excluir a conta ${account.username} de vez? Não dá para desfazer; a auditoria mantém o nome da conta.`}
/>
)}
{error && <span className="error-text">{error}</span>}
</div>
);