]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/dashboard: Render all objects in KV-table
authorStephan Müller <smueller@suse.com>
Thu, 10 Jan 2019 13:58:39 +0000 (14:58 +0100)
committerStephan Müller <smueller@suse.com>
Fri, 11 Jan 2019 08:07:47 +0000 (09:07 +0100)
commit1033314a24d331702676be28e0c2e7e9fa314f00
tree6b151e50464f365790924c035d2054cb5c9fbe1b
parente99a8ee39b57219e134c18712625928ca51ed01e
mgr/dashboard: Render all objects in KV-table

The problem was that the key value table didn't render all objects in
the given object, even if 'renderObjects' was set to true.

For example you give it an object with 2 attributes each of them holds a
non empty object, this will result in a table data that is not fully
converted to key value objects, which will result as text '[Object
object]' in the table view.

Now every object will be rendered and the key value array will be sorted
by key.

Fixes: https://tracker.ceph.com/issues/37859
Signed-off-by: Stephan Müller <smueller@suse.com>
src/pybind/mgr/dashboard/frontend/src/app/shared/datatable/table-key-value/table-key-value.component.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/datatable/table-key-value/table-key-value.component.ts