mirror of
https://github.com/nasa/openmct.git
synced 2025-03-22 12:05:19 +00:00
[Condition Widgets] Keep styles for widgets with a URL (#6515)
* call update style after view is update with current style rule manager styles for components (namely condition widget) that have DOM changes after the element is grabbed to style * target blank yo --------- Co-authored-by: Shefali Joshi <simplyrender@gmail.com>
This commit is contained in:
parent
2ff7132e90
commit
36cfb1d515
@ -25,6 +25,7 @@
|
||||
:is="urlDefined ? 'a' : 'span'"
|
||||
class="c-condition-widget u-style-receiver js-style-receiver"
|
||||
:href="url"
|
||||
:target="url ? '_BLANK' : ''"
|
||||
>
|
||||
<div class="c-condition-widget__label">
|
||||
{{ label }}
|
||||
|
@ -286,6 +286,7 @@ export default {
|
||||
this.openmct.objectViews.on('clearData', this.clearData);
|
||||
|
||||
this.$nextTick(() => {
|
||||
this.updateStyle(this.styleRuleManager?.currentStyle);
|
||||
this.getActionCollection();
|
||||
});
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user