From 85887ad1cf8063d08fec83fc17d7f7d2612946aa Mon Sep 17 00:00:00 2001 From: Greg Look Date: Wed, 14 Oct 2015 14:51:33 -0700 Subject: [PATCH] Add mile, fix menu values. --- public/app/components/kbn.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/public/app/components/kbn.js b/public/app/components/kbn.js index aa3aad19fd9..9c9b337f1b3 100644 --- a/public/app/components/kbn.js +++ b/public/app/components/kbn.js @@ -352,7 +352,9 @@ function($, _) { // Length kbn.valueFormats.lengthm = kbn.formatBuilders.decimalSIPrefix('m'); + kbn.valueFormats.lengthmm = kbn.formatBuilders.decimalSIPrefix('m', -1); kbn.valueFormats.lengthkm = kbn.formatBuilders.decimalSIPrefix('m', 1); + kbn.valueFormats.lengthmi = kbn.formatBuilders.fixedUnit('mi'); // Velocity kbn.valueFormats.velocityms = kbn.formatBuilders.fixedUnit('m/s'); @@ -502,9 +504,8 @@ function($, _) { submenu: [ {text: 'millimetre (mm)', value: 'lengthmm'}, {text: 'meter (m)', value: 'lengthm' }, - {text: 'kilometer (km)', value: 'lengthm' }, - {text: 'inches', value: 'lengthin'}, - {text: 'feet', value: 'lengthft'}, + {text: 'kilometer (km)', value: 'lengthkm'}, + {text: 'mile (mi)', value: 'lengthmi'}, ] }, { @@ -549,7 +550,7 @@ function($, _) { submenu: [ {text: 'Millibars', value: 'pressurembar'}, {text: 'Hectopascals', value: 'pressurehpa' }, - {text: 'Inches of mercury', value: 'pressurehq' }, + {text: 'Inches of mercury', value: 'pressurehg' }, {text: 'PSI', value: 'pressurepsi' }, ] },