Add name attribute to Payments
This commit is contained in:
parent
8bbe7c7178
commit
c403757ce8
23 changed files with 105 additions and 8 deletions
ts_src/payments
|
@ -102,6 +102,10 @@ export function p2ms(a: Payment, opts?: PaymentOpts): Payment {
|
|||
if (!o.input) return;
|
||||
return [];
|
||||
});
|
||||
lazy.prop(o, 'name', () => {
|
||||
if (!o.m || !o.n) return;
|
||||
return `p2ms(${o.m} of ${o.n})`;
|
||||
});
|
||||
|
||||
// extended validation
|
||||
if (opts.validate) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue