]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: Changed default value of decimal point to 1 22386/head
authorTiago Melo <tmelo@suse.com>
Mon, 4 Jun 2018 10:30:33 +0000 (11:30 +0100)
committerTiago Melo <tspmelo@gmail.com>
Tue, 5 Jun 2018 10:06:15 +0000 (11:06 +0100)
commitfc15690ba172b4ddc831c45e5b36c0c252c10544
tree12e19434349b827ce5bf7d5adfab3d3d98bf3348
parent002aabc7b9982d889c93aea9f9f1134d24c2640b
mgr/dashboard: Changed default value of decimal point to 1

Changed the default decimals point to 1 in 'formater_number' method, this
is used in the 'dimlessPipe' and 'dimlessBinaryPipe'.
This value can still be changed when needed, using one of the parameters.

I have also removed the 'truncate' method.

Fixes: https://tracker.ceph.com/issues/24281
Signed-off-by: Tiago Melo <tmelo@suse.com>
src/pybind/mgr/dashboard/frontend/src/app/shared/services/formatter.service.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/services/formatter.service.ts