mirror of
https://github.com/nasa/openmct.git
synced 2025-06-17 06:38:17 +00:00
[Missing Object] Notifications are shown as minimized (#6416)
* Add minimize to the notification model and minimize missing object notifications * Add test * Short circuit telemetry api functions if passed in domainObject is missing/type unknown * Clear notifications properly after test
This commit is contained in:
@ -264,7 +264,7 @@ export default class TelemetryAPI {
|
||||
* telemetry data
|
||||
*/
|
||||
async request(domainObject) {
|
||||
if (this.noRequestProviderForAllObjects) {
|
||||
if (this.noRequestProviderForAllObjects || domainObject.type === 'unknown') {
|
||||
return [];
|
||||
}
|
||||
|
||||
@ -318,6 +318,10 @@ export default class TelemetryAPI {
|
||||
* the subscription
|
||||
*/
|
||||
subscribe(domainObject, callback, options) {
|
||||
if (domainObject.type === 'unknown') {
|
||||
return () => {};
|
||||
}
|
||||
|
||||
const provider = this.#findSubscriptionProvider(domainObject);
|
||||
|
||||
if (!this.subscribeCache) {
|
||||
|
Reference in New Issue
Block a user