Explorar o código

Merge pull request #3307 from dennisdegreef/addCubicMeters

Add cubic meters to units
Carl Bergquist %!s(int64=10) %!d(string=hai) anos
pai
achega
8ee0e5d11f
Modificáronse 1 ficheiros con 4 adicións e 2 borrados
  1. 4 2
      public/app/core/utils/kbn.js

+ 4 - 2
public/app/core/utils/kbn.js

@@ -399,6 +399,7 @@ function($, _) {
   // Volume
   kbn.valueFormats.litre  = kbn.formatBuilders.decimalSIPrefix('L');
   kbn.valueFormats.mlitre = kbn.formatBuilders.decimalSIPrefix('L', -1);
+  kbn.valueFormats.m3     = kbn.formatBuilders.decimalSIPrefix('m3');
 
   // Time
   kbn.valueFormats.hertz = kbn.formatBuilders.decimalSIPrefix('Hz');
@@ -626,8 +627,9 @@ function($, _) {
       {
         text: 'volume',
         submenu: [
-          {text: 'millilitre', value: 'mlitre'},
-          {text: 'litre',      value: 'litre' },
+          {text: 'millilitre',  value: 'mlitre'},
+          {text: 'litre',       value: 'litre' },
+          {text: 'cubic metre', value: 'm3'    },
         ]
       },
       {