Skip to content

Commit

Permalink
[Condition Widgets] Keep styles for widgets with a URL (#6515)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
jvigliotta and shefalijoshi committed Mar 28, 2023
1 parent 2ff7132 commit 36cfb1d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/plugins/conditionWidget/components/ConditionWidget.vue
Expand Up @@ -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 }}
Expand Down
1 change: 1 addition & 0 deletions src/ui/components/ObjectView.vue
Expand Up @@ -286,6 +286,7 @@ export default {
this.openmct.objectViews.on('clearData', this.clearData);
this.$nextTick(() => {
this.updateStyle(this.styleRuleManager?.currentStyle);
this.getActionCollection();
});
},
Expand Down

0 comments on commit 36cfb1d

Please sign in to comment.