Skip to content

Commit f872a51

Browse files
authored
feat: Frontend: support filtering notifications (#26805)
1 parent 4f2b052 commit f872a51

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

lib/types/types.d.ts

+1
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ declare global {
163163
url?: string;
164164
ssl_cert?: string;
165165
ssl_key?: string;
166+
notification_filter?: string[];
166167
};
167168
devices: {[s: string]: DeviceOptions};
168169
groups: {[s: string]: Omit<GroupOptions, 'ID'>};

lib/util/settings.schema.json

+8
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,14 @@
410410
"description": "Base URL for the frontend. If hosted under a subpath, e.g. 'http://localhost:8080/z2m', set this to '/z2m'",
411411
"default": "/",
412412
"requiresRestart": true
413+
},
414+
"notification_filter": {
415+
"title": "Notification Filter",
416+
"description": "Hide frontend notifications matching specified regex strings. Example: 'z2m: Failed to ping.*'",
417+
"type": "array",
418+
"items": {
419+
"type": "string"
420+
}
413421
}
414422
},
415423
"required": []

0 commit comments

Comments
 (0)