Skip to content

Commit

Permalink
Merge pull request grafana#96 from grafana/95-std-asciiLower
Browse files Browse the repository at this point in the history
Remove use of std.asciiLower, it doesn't exist in early versions of jsonnet.
  • Loading branch information
tomwilkie authored Oct 24, 2018
2 parents acf79f6 + a966445 commit bd51275
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions grafonnet/dashboard.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ local timepickerlib = import 'timepicker.libsonnet';
editable: editable,
gnetId: null,
graphTooltip:
if std.asciiLower(graphTooltip) == 'shared_tooltip' then 2
else if std.asciiLower(graphTooltip) == 'shared_crosshair' then 1
else if std.asciiLower(graphTooltip) == 'default' then 0
else std.asciiLower(graphTooltip),
if graphTooltip == 'shared_tooltip' then 2
else if graphTooltip == 'shared_crosshair' then 1
else if graphTooltip == 'default' then 0
else graphTooltip,
hideControls: hideControls,
id: null,
links: [],
Expand Down

0 comments on commit bd51275

Please sign in to comment.