1
0
Fork 0
mirror of https://github.com/Ylianst/MeshCentral.git synced 2025-03-09 15:40:18 +00:00

More work on automatic inactive device removal.

This commit is contained in:
Ylian Saint-Hilaire 2021-08-01 10:54:14 -07:00
parent db9e824121
commit 896a613a65
5 changed files with 954 additions and 924 deletions

View file

@ -11469,6 +11469,15 @@
}
x += '<div><label><input type=checkbox id=d20expireDevice onchange=p20editmeshfeaturesValidate() ' + ((expire > 0) ? 'checked' : '') + '>' + "Automatically remove inactive devices" + '</label><br></div>';
x += '<div style=margin-left:20px id=d20expireDeviceDev>' + "Inactivate days until removal" + ' <label><input type=number inputmode=numeric onchange=p20editmeshfeaturesValidate() onkeyup=p20editmeshfeaturesValidate() onpaste=p20editmeshfeaturesValidate() onkeydown=p20editmeshfeaturesValidate() maxlength=4 min=1 max=2000 style=width:80px value=\"' + ((expire == 0)?30:expire) + '\" id=d20expireDeviceDays></label><br></div>';
if (serverinfo.autoremoveinactivedevices) {
if (serverinfo.autoremoveinactivedevices == 1) {
x += format('<span style=font-size:x-small;margin-left:6px>' + "By default, inactive devices will be removed after 1 day." + '</span>', serverinfo.autoremoveinactivedevices);
} else {
x += format('<span style=font-size:x-small;margin-left:6px>' + "By default, inactive devices will be removed after {0} days." + '</span>', serverinfo.autoremoveinactivedevices);
}
}
setDialogMode(2, "Edit Device Group Features", 3, p20editmeshfeaturesEx, x);
p20editmeshfeaturesValidate();
}