Skip to content

Commit

Permalink
[DEV][FIX] Fix dbsize plugin to make it hideable again (nightscout#5529)
Browse files Browse the repository at this point in the history
* [FIX] Making dbsize plugin default but hideable - removed its forced show state

* Removed unused lodash dependency
  • Loading branch information
dlvoy authored Feb 22, 2020
1 parent dcf8248 commit 43165a0
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions app.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
},
"ENABLE": {
"description": "Plugins to enable for your site. Must be a space-delimited, lower-case list. Include the word 'bridge' here if you are receiving data from the Dexcom Share service. Include 'mmconnect' if you are bridging from the MiniMed CareLink service.",
"value": "careportal basal",
"value": "careportal basal dbsize",
"required": false
},
"MMCONNECT_USER_NAME": {
Expand Down Expand Up @@ -129,7 +129,7 @@
},
"SHOW_PLUGINS": {
"description": "Default setting for whether or not these plugins are checked (active) by default, not merely enabled. Include plugins here as in the ENABLE line; space-separated and lower-case.",
"value": "careportal",
"value": "careportal dbsize",
"required": false
},
"SHOW_RAWBG": {
Expand Down
4 changes: 2 additions & 2 deletions azuredeploy.json
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@
},
"enable": {
"type": "string",
"defaultValue": "basal bwp cage careportal iob cob rawbg sage iage treatmentnotify boluscalc profile food"
"defaultValue": "basal bwp cage careportal iob cob rawbg sage iage treatmentnotify boluscalc profile food dbsize"
},
"night_mode": {
"type": "string",
Expand All @@ -185,7 +185,7 @@
},
"show_plugins": {
"type": "string",
"defaultValue": "careportal"
"defaultValue": "careportal dbsize"
},
"show_rawbg": {
"type": "string",
Expand Down
1 change: 0 additions & 1 deletion lib/plugins/dbsize.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
'use strict';

var _ = require('lodash');
var levels = require('../levels');

function init (ctx) {
Expand Down
4 changes: 2 additions & 2 deletions lib/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function init () {
, alarmPumpBatteryLow: false
, language: 'en'
, scaleY: 'log'
, showPlugins: ''
, showPlugins: 'dbsize'
, showForecast: 'ar2'
, focusHours: 3
, heartbeat: 60
Expand Down Expand Up @@ -308,7 +308,7 @@ function init () {
function adjustShownPlugins () {
var showPluginsUnset = settings.showPlugins && 0 === settings.showPlugins.length;

settings.showPlugins += ' delta direction upbat dbsize';
settings.showPlugins += ' delta direction upbat';
if (settings.showRawbg === 'always' || settings.showRawbg === 'noise') {
settings.showPlugins += ' rawbg';
}
Expand Down

0 comments on commit 43165a0

Please sign in to comment.