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:
Andrew Dixon
2020-04-14 10:20:35 +03:00
committed by GitHub
parent 4cdd00db40
commit 17eb4ae7bc
7 changed files with 59 additions and 18 deletions
+7
View File
@@ -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