patchbay: missing preArgs implementation
This commit is contained in:
parent
460d8718c9
commit
870d3e3445
2 changed files with 3 additions and 1 deletions
|
|
@ -5,6 +5,7 @@
|
|||
- widgets
|
||||
- frame: add `allow` property
|
||||
- matrix: make `quantity` a dynamic property to avoid losing widget state when it changes
|
||||
- patchbay: missing `preArgs` implementation
|
||||
|
||||
## 1.29.1 / 1.29.2
|
||||
|
||||
|
|
|
|||
|
|
@ -167,11 +167,12 @@ class PatchBay extends Container(Canvas) {
|
|||
let w = parser.parse({
|
||||
data: {
|
||||
type: 'patchbaynode',
|
||||
comments: this.inputs[k], // TODO: using comment prop to smuggle input identifier, ok but could be more elegant
|
||||
id: this.getProp('id') + '/' + this.inputs[k],
|
||||
address: '#{@{parent.address} == "auto" ? "/" + @{parent.id} : @{parent.address}}',
|
||||
target: '@{parent.target}',
|
||||
ignoreDefaults: '@{parent.ignoreDefaults}',
|
||||
preArgs: this.inputs[k],
|
||||
preArgs: '#{@{parent.preArgs} == "" ? @{this.comments} : Array.isArray(@{parent.preArgs}) ? @{parent.preArgs}.concat(@{this.comments}) : [@{parent.preArgs}, @{this.comments}]}',
|
||||
bypass: '@{parent.bypass}',
|
||||
label: k
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue