[Staleness] Fix issue with object view staleness styles not being reset on clock change (#7122)

Add logic to un/re-subscribe when clock changes to object view
This commit is contained in:
Khalid Adil 2023-10-06 17:26:05 -05:00 committed by GitHub
parent 084784a409
commit 6b32c63039
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -139,6 +139,10 @@ export default {
this.initObjectStyles();
this.triggerStalenessSubscribe(this.domainObject);
}
this.setupClockChangedEvent((domainObject) => {
this.triggerUnsubscribeFromStaleness(domainObject);
this.subscribeToStaleness(domainObject);
});
},
methods: {
clear() {