feat(админка): баланс счёта на кнопке «Внести»; выпуск с открытием пополнения всем
Кнопка «Внести» в карточке клиента показывает текущий баланс («Внести · 1 975,09 ₽»), у владельца и служебных учёток суммы нет — счёт им не ведётся. План и разбор — docs/PLAN_2026-11-21_enable_topup_all_and_balance_button.md, docs/DESIGN_LOG.md. Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
@@ -187,7 +187,8 @@ export function CustomerDrawer({ email, onClose, onDeleted, onChanged }) {
|
||||
<button type="button" disabled=${busy} onClick=${() => act('agent_access',
|
||||
{agent_access: !card.profile.agent_access}, card.profile.agent_access ? 'Доступ снят' : 'Доступ выдан')}>
|
||||
${card.profile.agent_access ? 'Снять агента' : 'Выдать агента'}</button>
|
||||
<button type="button" disabled=${busy} onClick=${topup}>Внести</button>
|
||||
<button type="button" disabled=${busy} onClick=${topup}>Внести${card.account
|
||||
? ' · ' + rub(card.account.balance_rub) : ''}</button>
|
||||
<button type="button" disabled=${busy} onClick=${exportData}>Выгрузить</button>
|
||||
<button type="button" disabled=${busy} onClick=${del}>Удалить</button>
|
||||
</div>` : html`<div class="actions-bar">
|
||||
|
||||
Reference in New Issue
Block a user