mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-09-11 08:55:32 +03:00
forgot user new events filter fix #6189
Signed-off-by: si458 <simonsmith5521@gmail.com>
This commit is contained in:
parent
6b21bacad2
commit
81557ab2d4
@ -3141,11 +3141,13 @@
|
|||||||
|
|
||||||
if (currentUser && (message.event.userid == currentUser._id)) {
|
if (currentUser && (message.event.userid == currentUser._id)) {
|
||||||
// If this event has a userid and we are looking at this user, update the log in real time.
|
// If this event has a userid and we are looking at this user, update the log in real time.
|
||||||
|
if ((message.event.action == p31filterevents.value) || (p31filterevents.value == "")) {
|
||||||
currentUserEvents.unshift(message.event);
|
currentUserEvents.unshift(message.event);
|
||||||
var eventLimit = parseInt(p31limitdropdown.value);
|
var eventLimit = parseInt(p31limitdropdown.value);
|
||||||
while (currentUserEvents.length > eventLimit) { currentUserEvents.pop(); } // Remove element(s) at the end
|
while (currentUserEvents.length > eventLimit) { currentUserEvents.pop(); } // Remove element(s) at the end
|
||||||
mainUpdate(2048);
|
mainUpdate(2048);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Add this event to the main events log.
|
// Add this event to the main events log.
|
||||||
if ((message.event.action == p3filterevents.value) || (p3filterevents.value == "")) {
|
if ((message.event.action == p3filterevents.value) || (p3filterevents.value == "")) {
|
||||||
|
Loading…
Reference in New Issue
Block a user