]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: Add time-diff unittest and docs 31357/head
authorVolker Theile <vtheile@suse.com>
Mon, 4 Nov 2019 13:44:58 +0000 (14:44 +0100)
committerVolker Theile <vtheile@suse.com>
Thu, 7 Nov 2019 09:07:26 +0000 (10:07 +0100)
commitf70cefda2e0411095ec9a889a8fff1d99175ff51
tree7c5fa7306277eda42e302271218b09e9e52782fb
parente8f1f0253af083212529738d924a34fcc4cc538a
mgr/dashboard: Add time-diff unittest and docs

The method 'calculateDuration' should return an empty string if time diff is less then a minute.

Signed-off-by: Volker Theile <vtheile@suse.com>
src/pybind/mgr/dashboard/frontend/src/app/shared/services/time-diff.service.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/services/time-diff.service.ts