mirror of
https://github.com/nasa/openmct.git
synced 2025-03-22 12:05:19 +00:00
do not show sun into compass rose if sun heading is undefined (#3713)
This commit is contained in:
parent
5377f0d0b3
commit
16249c3790
@ -124,6 +124,7 @@
|
||||
</div>
|
||||
|
||||
<div
|
||||
v-if="showSunHeading"
|
||||
class="c-sun"
|
||||
:style="sunHeadingStyle"
|
||||
></div>
|
||||
@ -229,6 +230,9 @@ export default {
|
||||
transform: `rotate(${ rotation }deg)`
|
||||
};
|
||||
},
|
||||
showSunHeading() {
|
||||
return this.sunHeading !== undefined;
|
||||
},
|
||||
sunHeadingStyle() {
|
||||
const rotation = rotate(this.north, this.sunHeading);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user