mirror of
https://github.com/nasa/openmct.git
synced 2025-02-20 17:33:23 +00:00
Use the current clock's timestamp to show the now line in the timestrip (#6082)
This commit is contained in:
parent
327fc826c1
commit
9ed9e62202
@ -101,7 +101,8 @@ export default {
|
||||
if (nowMarker) {
|
||||
nowMarker.classList.remove('hidden');
|
||||
nowMarker.style.height = this.contentHeight + 'px';
|
||||
const now = this.xScale(Date.now());
|
||||
const nowTimeStamp = this.openmct.time.clock().currentValue();
|
||||
const now = this.xScale(nowTimeStamp);
|
||||
nowMarker.style.left = now + this.offset + 'px';
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user