deleçao de contas web
This commit is contained in:
@@ -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>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user