fix event save on child node, fix command filter condition, add SideMenuAfterList

montage-api
Moe 2022-01-12 10:41:23 -08:00
parent 269e35284b
commit a7fb7b33ea
4 changed files with 13 additions and 6 deletions

View File

@ -2869,7 +2869,6 @@ module.exports = function(s,config,lang){
"field": lang["Timeout Reset on Next Event"],
"description": "If there is an overlap in trigger record should it reset.",
"default": "1",
"example": "",
"fieldType": "select",
"form-group-class": "h_det_input h_det_1",
"form-group-class-pre-layer": "h_rec_mtd_input h_rec_mtd_hot h_rec_mtd_sip",
@ -2888,9 +2887,7 @@ module.exports = function(s,config,lang){
hidden: true,
"name": "detail=detector_delete_motionless_videos",
"field": lang['Delete Motionless Video'],
"description": "",
"default": "0",
"example": "",
"form-group-class": "h_det_input h_det_1",
"form-group-class-pre-layer": "h_rec_mtd_input h_rec_mtd_del",
"fieldType": "select",
@ -7732,6 +7729,12 @@ module.exports = function(s,config,lang){
]
}
]
},
"SideMenuAfterList": {
"name": "SideMenuAfterList",
"noHeader": true,
"noDefaultSectionClasses": true,
"info": []
}
}
},

View File

@ -219,7 +219,7 @@ module.exports = (s,config,lang,app,io) => {
{
"id": "mqttclient_list",
"fieldType": "div",
},
},
{
"fieldType": "script",
"src": "assets/js/bs5.mqtt.js",

View File

@ -402,7 +402,7 @@ module.exports = (s,config,lang,app,io) => {
ke: d.ke,
mid: d.id,
details: detailString,
time: eventTime,
time: s.formattedTime(eventTime),
}
})
}
@ -439,7 +439,10 @@ module.exports = (s,config,lang,app,io) => {
})
}
if(filter.command && monitorDetails.detector_command_enable === '1' && !s.group[d.ke].activeMonitors[d.id].detector_command){
if(
filter.command ||
(monitorDetails.detector_command_enable === '1' && !s.group[d.ke].activeMonitors[d.id].detector_command)
){
s.group[d.ke].activeMonitors[d.id].detector_command = s.createTimeout('detector_command',s.group[d.ke].activeMonitors[d.id],monitorDetails.detector_command_timeout,10)
var detector_command = addEventDetailsToString(d,monitorDetails.detector_command)
if(detector_command === '')return

View File

@ -65,6 +65,7 @@
</div>
</div>
</div>
<% drawBlock(define.SideMenu.blocks.SideMenuAfterList) %>
<% if(showMonitors){ %>
<div>
<div class="form-group px-3">