mirror of
https://github.com/bckelley/cgm-remote-monitor.git
synced 2026-08-24 03:14:12 -05:00
Option to switch off bolus amount outputs (#5522)
* Option to switch off bolus amount outputs (#5514) * Fixing issue with carb value not be output when set to "none" (#5514) * Adding additional output options (#5514) * Adding environment variable option for 'x U and Over' option. This option is BOLUS_RENDER_OVER with a default value of 1 and the value can be an integer or a float, e.g. 0.3, 1.5, 2, etc... * Adding change to change the font size depending on the bolus value. * Merge two "all" options to create an option that displays as SMB had.
This commit is contained in:
@@ -399,6 +399,12 @@ client.load = function load (serverSettings, callback) {
|
||||
}
|
||||
}
|
||||
|
||||
function updateBolusRenderOver () {
|
||||
var bolusRenderOver = (client.settings.bolusRenderOver || 1) + ' U and Over';
|
||||
$('#bolusRenderOver').text(bolusRenderOver);
|
||||
console.log('here');
|
||||
}
|
||||
|
||||
function alarmingNow () {
|
||||
return container.hasClass('alarming');
|
||||
}
|
||||
@@ -1240,6 +1246,7 @@ client.load = function load (serverSettings, callback) {
|
||||
|
||||
prepareEntries();
|
||||
updateTitle();
|
||||
updateBolusRenderOver();
|
||||
|
||||
// Don't invoke D3 in headless mode
|
||||
|
||||
|
||||
Reference in New Issue
Block a user