LP#1819179: Angular admin grid auto-link fleshing user/miker/lp-1819179-admin-grid-has_a-flesh
authorBill Erickson <berickxx@gmail.com>
Wed, 6 Mar 2019 22:41:25 +0000 (17:41 -0500)
committerMike Rylander <mrylander@gmail.com>
Fri, 8 Mar 2019 15:25:23 +0000 (10:25 -0500)
commitcfcb1ef4fe745b18277a20324b28262a2384ac54
treee18cc980e3a4559fe1aca1f27ec35028eebc9fe6
parentb12d5a92fb7fefa123cd3a176373148d60e04f1f
LP#1819179: Angular admin grid auto-link fleshing

The new Angular grid component, as used in the admin interfaces, shows linked
objects with a has_a relationship to the main type as the pkey value of the
linked objects. When there is a selector set for the linked object type, we
can do better by showing the value from the selector field.

In the future, the same may be reasonble for might_have fields.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/src/eg2/src/app/core/format.service.ts
Open-ILS/src/eg2/src/app/share/grid/grid.ts
Open-ILS/src/eg2/src/app/staff/share/admin-page/admin-page.component.ts