Triggering notifications for children of alert entities. Showing icons in alert entity search to distinguish networks and channels.

This commit is contained in:
DebaucheryLibrarian
2021-04-26 00:48:31 +02:00
parent eed563e06f
commit 8bf9fff7dc
10 changed files with 82 additions and 20 deletions

View File

@@ -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;
}

View File

@@ -94,6 +94,9 @@ async function init() {
config,
};
},
computed: {
theme() { return this.$store.state.ui.theme; },
},
watch: {
pageTitle(title) {
if (title) {

View File

@@ -41,6 +41,7 @@ function initUiActions(store, _router) {
) {
notifications(
first: 10
orderBy: CREATED_AT_DESC
) {
id
sceneId