Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
f0b3e1a
allow Node 12
PieterGit Jul 20, 2019
561f42a
Fix main view button alignment
sulkaharo Jul 21, 2019
6a7f598
Merge branch 'dev' of https://github.com/nightscout/cgm-remote-monito…
PieterGit Jul 21, 2019
8d6e551
allow Azure with Node ^10.15.2 and allow Node 12
PieterGit Jul 21, 2019
6e6cd29
drop Node `^12.6.0` from package.json, because it is not recommended…
PieterGit Jul 22, 2019
99e8d6f
up WEBSITE_NODE_DEFAULT_VERSION to 10.15.2
PieterGit Jul 22, 2019
1c94078
Update browser requirements
unsoluble Jul 22, 2019
7f5f74c
Perform HTTP to HTTPS redirect using 307 status
mastacheata Jul 22, 2019
2fed98a
Only set INSECURE_USE_HTTP as last resort
mastacheata Jul 22, 2019
3d5fc8d
Merge pull request #4778 from mastacheata/patch-2
sulkaharo Jul 23, 2019
eb3e4c8
Merge pull request #4779 from mastacheata/patch-1
sulkaharo Jul 23, 2019
0dd7347
Merge pull request #4775 from unsoluble/patch-1
sulkaharo Jul 23, 2019
ae2e8c9
Merge pull request #4782 from nightscout/master
sulkaharo Jul 23, 2019
c9b7e5c
Merge pull request #4769 from PieterGit/201907_dev
sulkaharo Jul 23, 2019
866b571
Update clock view notes
unsoluble Jul 23, 2019
3373c27
* Close button color is much dimmer and changes color appropriately i…
sulkaharo Jul 24, 2019
9acd999
Load the latest 'Sensor Stop' event in case user has a Start and Stop…
sulkaharo Jul 24, 2019
d2f21a5
Merge pull request #4794 from nightscout/load_sensor_stop
sulkaharo Jul 24, 2019
c7674ae
Renamed the config variable and inverted the boolean logic
sulkaharo Jul 24, 2019
3a3f41d
feat: Add support for different color prediction lines (#4792)
Erin879 Jul 24, 2019
a39b245
fix: Temp basal input fix for browsers that don't follow standards (S…
unsoluble Jul 24, 2019
9919d1e
Merge pull request #4788 from unsoluble/patch-3
sulkaharo Jul 24, 2019
7503512
Merge branch 'dev' into less_obtrusive_clock_close
sulkaharo Jul 24, 2019
2b0b19d
Adds a new feature for plugins, where plugin extended settings can be…
sulkaharo Jul 25, 2019
298a3f5
Add the new setting to README
sulkaharo Jul 26, 2019
6c01edb
Only show plugin settings in in client if the plugin is visible
sulkaharo Jul 26, 2019
71981de
Merge pull request #4793 from nightscout/less_obtrusive_clock_close
sulkaharo Jul 26, 2019
99ac3a6
Remove debug logging
sulkaharo Jul 26, 2019
6499480
Merge branch 'dev' into plugin_pref_ui
sulkaharo Jul 26, 2019
c9db3e3
Merge pull request #4799 from nightscout/plugin_pref_ui
sulkaharo Jul 26, 2019
7fe9fef
Assume any string in DISPLAY_UNITS that contains "mmol" indicates mmo…
sulkaharo Jul 27, 2019
fcca512
feat: validate temp target in Careportal (#4812)
sulkaharo Jul 27, 2019
cdc7669
Changed logic for the Clock Close button: 1) The show now defaults to…
sulkaharo Jul 29, 2019
5bf903e
Clock-color arrow wasn't reverting from its stale state (#4821)
unsoluble Jul 29, 2019
e1f0ac5
Small fix for if-modified-since header parsing (#4827)
sulkaharo Jul 29, 2019
c13d847
New utils.toFixed() for cleaner labels (#4822)
bassettb Jul 29, 2019
7947e30
feat: API improvements (#4806)
sulkaharo Jul 29, 2019
35c7dc4
* Allow users to set `DE_NORMALIZE_DATES=false` to have the REST API …
sulkaharo Jul 29, 2019
c2c534a
Update README.md
sulkaharo Jul 30, 2019
65fbaa1
Update CONTRIBUTING.md
sulkaharo Jul 30, 2019
1ada478
Bump version to 0.12.3
sulkaharo Jul 30, 2019
3a8f199
One more clock change - the SHOW_CLOCK_CLOSEBUTTON setting can now be…
sulkaharo Jul 30, 2019
f81298f
Release 0.12.3
sulkaharo Jul 30, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Only show plugin settings in in client if the plugin is visible
  • Loading branch information
sulkaharo committed Jul 26, 2019
commit 6c01edbfb602c58b7a08a877015e3068a65cb274
35 changes: 19 additions & 16 deletions lib/client/browser-settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,22 +109,25 @@ function init (client, serverSettings, $) {

if (pluginPrefs.length > 0) {
pluginPrefs.forEach(function(e) {
const label = e.plugin.label;
const dl = $('<dl>');
dl.append(`<dt class="translate">${label}</dt>`);
e.prefs.forEach(function(p) {
const id = e.plugin.name + "-" + p.id;
const label = p.label;
if (p.type == 'boolean') {
console.log("value for", id, storage.get(id));
const html = $(`<dd><input type="checkbox" id="${id}" value="true" /><label for="${id}r" class="translate">${label}</label></dd>`);
dl.append(html);
if (storage.get(id) == true) {
toggleCheckboxes.push(id);
// Only show settings if plugin is visible
if (settings.showPlugins.indexOf(e.plugin.name) > -1) {
const label = e.plugin.label;
const dl = $('<dl>');
dl.append(`<dt class="translate">${label}</dt>`);
e.prefs.forEach(function(p) {
const id = e.plugin.name + "-" + p.id;
const label = p.label;
if (p.type == 'boolean') {
console.log("value for", id, storage.get(id));
const html = $(`<dd><input type="checkbox" id="${id}" value="true" /><label for="${id}r" class="translate">${label}</label></dd>`);
dl.append(html);
if (storage.get(id) == true) {
toggleCheckboxes.push(id);
}
}
}
});
bs.append(dl);
});
bs.append(dl);
}
});
}

Expand Down Expand Up @@ -263,7 +266,7 @@ function init (client, serverSettings, $) {
wireForm();
};

init.loadPluginSettings = function loadPluginSettings(client) {
init.loadPluginSettings = function loadPluginSettings (client) {

client.plugins.eachEnabledPlugin(function each (plugin) {
if (plugin.getClientPrefs) {
Expand Down