From 2d1f59a9cc3ed659ad6cbfeca2cc51e5c934837f Mon Sep 17 00:00:00 2001 From: flopp999 <21694965+flopp999@users.noreply.github.com> Date: Fri, 15 Jun 2018 10:54:38 +0200 Subject: [PATCH] Added Litre/min and milliLitre/min in Flow (#12282) units: Litre/min and milliLitre/min in Flow --- public/app/core/utils/kbn.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/public/app/core/utils/kbn.ts b/public/app/core/utils/kbn.ts index 8862e434390..4302e62e3e0 100644 --- a/public/app/core/utils/kbn.ts +++ b/public/app/core/utils/kbn.ts @@ -582,6 +582,8 @@ kbn.valueFormats.flowcms = kbn.formatBuilders.fixedUnit('cms'); kbn.valueFormats.flowcfs = kbn.formatBuilders.fixedUnit('cfs'); kbn.valueFormats.flowcfm = kbn.formatBuilders.fixedUnit('cfm'); kbn.valueFormats.litreh = kbn.formatBuilders.fixedUnit('l/h'); +kbn.valueFormats.flowlpm = kbn.formatBuilders.decimalSIPrefix('L'); +kbn.valueFormats.flowmlpm = kbn.formatBuilders.decimalSIPrefix('L', -1); // Angle kbn.valueFormats.degree = kbn.formatBuilders.fixedUnit('°'); @@ -1075,6 +1077,8 @@ kbn.getUnitFormats = function() { { text: 'Cubic feet/sec (cfs)', value: 'flowcfs' }, { text: 'Cubic feet/min (cfm)', value: 'flowcfm' }, { text: 'Litre/hour', value: 'litreh' }, + { text: 'Litre/min (l/min)', value: 'flowlpm' }, + { text: 'milliLitre/min (mL/min)', value: 'flowmlpm' }, ], }, {