Versie 0.3.2
This commit is contained in:
1 parent
e77d8fd373
commit
1cf6eeed29
16 files changed
+551
-44
No files matched your search
@@ -1,4 +1,4 @@
|
||||
// Generated, do not edit. sha256:51ab737fb6604c8493f238a8893184408226a1a90ddd465fcd92bf0040b5a50e
|
||||
// Generated, do not edit. sha256:9b4688b90b1d72ebe6c49262c3d23557d132d9066d8379a911157bbf3dae8ae8
|
||||
import { mergeCheck, mergeAccounts } from '../data/accounts-merge.js';
|
||||
import { listAccounts, listSelectableAccounts, createAccount, updateAccount, deleteAccount } from '../data/accounts.js';
|
||||
import { listConnections } from '../data/connections.js';
|
||||
@@ -102,7 +102,7 @@ async function buildTable(el) {
|
||||
tableApi = renderTable(el.querySelector('#tbl'), {
|
||||
columns, rows: rijen,
|
||||
...(limitFor('fiatAccounts') !== null
|
||||
? { toolbarNote: () => `${t('license.name_fiatAccounts')}: ${counterText('fiatAccounts', bankCount)}` } : {}),
|
||||
? { toolbarNote: () => counterText('fiatAccounts', bankCount) } : {}),
|
||||
...(await tableViewCfg('accounts', { key: 'name', dir: 'asc' })),
|
||||
emptyText: t('accounts.none'),
|
||||
noneLabel: t('table.none'),
|
||||
@@ -317,6 +317,8 @@ async function mountSources(host, accountId, allowed) {
|
||||
};
|
||||
let api = null;
|
||||
const reloadSrc = async () => api.refresh(await listWalletSources(accountId));
|
||||
const rows = await listWalletSources(accountId);
|
||||
const nodeColumn = !locked('lightning') || rows.some(r => r.connectionId != null);
|
||||
|
||||
api = renderTable(host.querySelector('[data-src-table]'), {
|
||||
title: t('accounts.sources'),
|
||||
@@ -348,8 +350,8 @@ async function mountSources(host, accountId, allowed) {
|
||||
{ key: 'scriptType', label: t('accounts.colScriptType'),
|
||||
render: s => s.kind === 'xpub' ? t('accounts.script_' + s.scriptType) : '<span class="t-muted-cell">-</span>',
|
||||
edit: { type: 'select', options: scriptTypeOpts, visible: v => v.kind === 'xpub' } },
|
||||
],
|
||||
rows: await listWalletSources(accountId),
|
||||
].filter(c => nodeColumn || c.key !== 'connectionId'),
|
||||
rows,
|
||||
...(await tableViewCfg('accounts.sources', { key: 'name', dir: 'asc' })),
|
||||
emptyText: t('accounts.noSources'),
|
||||
newLabel: t('table.new'),
|
||||
|
||||
Reference in new issue
Block a user