Triggering notifications for children of alert entities. Showing icons in alert entity search to distinguish networks and channels.
This commit is contained in:
@@ -200,7 +200,10 @@ function curateNotification(notification) {
|
||||
const curatedNotification = notification;
|
||||
|
||||
curatedNotification.scene = curateRelease(notification.scene);
|
||||
curatedNotification.alert = curateAlert(notification.alert.alert || notification.alert);
|
||||
|
||||
if (notification.alert) {
|
||||
curatedNotification.alert = curateAlert(notification.alert.alert || notification.alert);
|
||||
}
|
||||
|
||||
return curatedNotification;
|
||||
}
|
||||
|
||||
@@ -94,6 +94,9 @@ async function init() {
|
||||
config,
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
theme() { return this.$store.state.ui.theme; },
|
||||
},
|
||||
watch: {
|
||||
pageTitle(title) {
|
||||
if (title) {
|
||||
|
||||
@@ -41,6 +41,7 @@ function initUiActions(store, _router) {
|
||||
) {
|
||||
notifications(
|
||||
first: 10
|
||||
orderBy: CREATED_AT_DESC
|
||||
) {
|
||||
id
|
||||
sceneId
|
||||
|
||||
Reference in New Issue
Block a user