Skip to content

Commit

Permalink
Update environment dashboard modus names #34
Browse files Browse the repository at this point in the history
  • Loading branch information
theyosh committed Oct 28, 2017
1 parent a59bd9e commit c4ed2d9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions static/js/terrariumpi.js
Original file line number Diff line number Diff line change
Expand Up @@ -408,9 +408,9 @@ function update_weather(data) {
}

function update_dashboard_environment(name, value) {
var mode_translations = {'sensor' : '{{_('Sensor')}}'.toLowerCase(),
'weather':'{{_('Weather')}}'.toLowerCase(),
'timer':'{{_('Timer')}}'.toLowerCase()};
var mode_translations = {'sensor' : '{{_('Sensor')}}',
'weather':'{{_('Weather')}}',
'timer':'{{_('Timer')}}'};
var systempart = $('div.environment_' + name);
if (systempart.length === 0 || Object.keys(value).length === 0 || !value.enabled) {
systempart.find('table.tile_info').hide();
Expand Down

0 comments on commit c4ed2d9

Please sign in to comment.