clean up UI, rename field to "Trigger Monitors with Tags"

fix-multi-trigger
Moe 2023-03-15 13:25:00 -07:00
parent 592a1f6144
commit 57168bd7e9
3 changed files with 3 additions and 21 deletions

View File

@ -2784,7 +2784,7 @@ module.exports = function(s,config,lang){
{
hidden: true,
"name": "detail=det_trigger_tags",
"field": lang['Trigger Group to Record'],
"field": lang['Trigger Monitors with Tags'],
"form-group-class": "h_det_input h_det_1",
},
{
@ -4020,25 +4020,6 @@ module.exports = function(s,config,lang){
},
]
},
"Grouping": {
id: "monSectionGrouping",
"name": lang.Grouping,
"headerTitle": lang['Grouping'] + ' <small>Add groups in <b>Settings</b></small>',
"color": "purple",
isSection: true,
isAdvanced: true,
"info": [
{
"fieldType": 'div',
"id": "monitor_groups",
"class": "mdl-list"
},
{
hidden: true,
"name": "detail=groups",
},
],
},
"Copy Settings": {
id: "monSectionCopying",
"name": lang['Copy Settings'],

View File

@ -194,6 +194,7 @@
"Global Detector Settings": "Global Detector Settings",
"Detector Settings": "Detector Settings",
"Trigger Group to Record": "Trigger Group to Record",
"Trigger Monitors with Tags": "Trigger Monitors with Tags",
"triggerGroupRecordFieldText": "Add the names of an existing tag that was added to a Monitor previously or is pending to be added to this monitor that is currently being edited.",
"Trigger Camera Groups": "Trigger Camera Groups",
"Motion Detection": "Motion Detection",

View File

@ -1,5 +1,5 @@
const movingThings = require('shinobi-node-moving-things-tracker').Tracker
module.exports = (s,config,lang,app,io) => {
module.exports = (s,config,lang) => {
const objectTrackers = {}
const objectTrackerTimeouts = {}
function resetObjectTracker(trackerId,matrices){