(record)
| 1513 | }; |
| 1514 | |
| 1515 | const updateChannelBalance = async (record) => { |
| 1516 | const res = await API.get(`/api/channel/update_balance/${record.id}/`); |
| 1517 | const { success, message, balance } = res.data; |
| 1518 | if (success) { |
| 1519 | updateChannelProperty(record.id, (channel) => { |
| 1520 | channel.balance = balance; |
| 1521 | channel.balance_updated_time = Date.now() / 1000; |
| 1522 | }); |
| 1523 | showInfo( |
| 1524 | t('通道 ${name} 余额更新成功!').replace('${name}', record.name), |
| 1525 | ); |
| 1526 | } else { |
| 1527 | showError(message); |
| 1528 | } |
| 1529 | }; |
| 1530 | |
| 1531 | const batchDeleteChannels = async () => { |
| 1532 | if (selectedChannels.length === 0) { |
no test coverage detected