Skip to content

Commit

Permalink
Merge pull request #1923 from MilosKozak/dev
Browse files Browse the repository at this point in the history
show extended pump properties
  • Loading branch information
MilosKozak authored Sep 4, 2016
2 parents 144a8bf + 54d552b commit d86a0c1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/plugins/pump.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,13 @@ function init ( ) {
}
}
});

if (result.extended) {
info.push({label: '------------', value: ''});
_.forOwn(result.extended, function(value, key) {
info.push({ label: key, value: value });
});
}

sbx.pluginBase.updatePillText(pump, {
value: values.join(' ')
Expand Down Expand Up @@ -232,6 +239,7 @@ function prepareData (prop, prefs, sbx) {
level: levels.NONE
, clock: pump.clock ? { value: moment(pump.clock) } : null
, reservoir: pump.reservoir || pump.reservoir === 0 ? { value: pump.reservoir } : null
, extended: pump.extended || null
};

updateClock(prefs, result, sbx);
Expand Down

0 comments on commit d86a0c1

Please sign in to comment.