Sitemap editor: nested sitemaps#4206
Conversation
#5781 Bundle Size — 13.8MiB (+0.03%).7abfc75(current) vs 6e8e01e main#5775(baseline) Warning Bundle contains 2 duplicate packages – View duplicate packages Bundle metrics
Bundle size by type
Bundle analysis report Branch mherwege:sitemap_nested Project dashboard Generated by RelativeCI Documentation Report issue |
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
| openOnReady: Boolean, | ||
| disabled: Boolean | ||
| }, | ||
| emits: ['sitemapPicked', 'input'], |
There was a problem hiding this comment.
since sitempaPicked is an f7.emit, it shouldn't be listed here.
There was a problem hiding this comment.
i actually don't see where there is a f7.on sitemapPicked - maybe this is just here for consistency?
There was a problem hiding this comment.
This code is copied from persistencePicker I believe, so your feedback also may also apply to that one (and some other pickers). But all you point out is correct.
| }) | ||
| }, | ||
| methods: { | ||
| open() { |
There was a problem hiding this comment.
I don't see where 'open' is used, is it needed?
| title="Sitemap" | ||
| :value="widget.name" | ||
| :disabled="!editable" | ||
| @input="(value) => (widget.name = value)" /> |
There was a problem hiding this comment.
you can change the emit to be update:value instead of 'input'. That way, you can use vmodel:value="widget.name" which is shorthand for the 2 separate :value and @input lines.
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>
Depends on openhab/openhab-core#5543
This enhancement allows creating, editing and visualizing nested sitemaps in the sitemap editor. It requires the core enhancement to be merged.