widgets: set default address to "auto" and use id automatically

This commit is contained in:
bordun 2020-05-20 17:55:22 +02:00
parent c291d3e9a2
commit 4295483fad
5 changed files with 10 additions and 12 deletions

View file

@ -143,7 +143,7 @@ class WidgetManager extends EventEmitter {
preArgs: widget.getProp('preArgs'),
target: widget.getProp('target'),
typeTags: widget.getProp('typeTags'),
address: widget.getProp('address'),
address: widget.getProp('address') === 'auto' ? '/' + widget.getProp('id') : widget.getProp('address'),
}
})