make severity responsive

This commit is contained in:
David Tsay 2023-09-19 14:08:11 -07:00
parent 61e7050391
commit ff48074143

View File

@ -58,13 +58,13 @@ export default {
data() {
return {
notifications: this.openmct.notifications.notifications,
highest: this.openmct.notifications.highest,
highestSeverity: this.openmct.notifications.highest.severity,
showNotificationsOverlay: false
};
},
computed: {
severityClass() {
return `s-status-${this.highest.severity}`;
return `s-status-${this.highestSeverity}`;
}
},
mounted() {
@ -84,7 +84,7 @@ export default {
},
updateNotifications() {
this.notifications = [...this.openmct.notifications.notifications];
this.highest = this.openmct.notifications.highest;
this.highestSeverity = this.openmct.notifications.highest.severity;
},
notificationsCountMessage(count) {
if (count > 1) {