Closed himdel closed 4 years ago
@miq-bot add_label wip
mostly because there is one more dialog editor select issue (entriesChange
don't work when the blur goes directly to the select? or maybe just a missing refresh on tab load/switch (seems to help)?),
so possibly this should be split differently
(and the description no longer matches the last commit) (moved that change to https://github.com/ManageIQ/ui-components/pull/430)
Closing, will be part of ManageIQ/manageiq-ui-classic#6954
Needed by https://github.com/ManageIQ/manageiq-ui-classic/pull/6449, but can go in standalone.
Since 2.x, angular-ui-bootstrap supports
.component
in addition to.controller
+.template
in modals, but that acts very differently (ignores controller and template, and renders the component with a fixed set of args).The old behaviour still works, but we can't just pass an options object with
.component
toopen
. Replacing with an object created with just the relevant options. (So, this is pretty muchdelete options.component
.)Also changing a "catch any error and ignore it" to at least
console.error
it, and because of changes in how ng-switch-when interacts with other directives on the same element, transforming the dialog editor template from (simplified):to:
And finally fixing the tag control preview to also support multiselect, and the function used to transform values from JSON in the editor to deal with the values already having been transformed (happened when switching a new dropdown to multiselect).