LP1808268: Add [disable] option to <eg-grid-toolbar-action> in eg2
authorJane Sandberg <sandbej@linnbenton.edu>
Fri, 14 Dec 2018 04:50:15 +0000 (20:50 -0800)
committerBill Erickson <berickxx@gmail.com>
Wed, 23 Jan 2019 16:54:20 +0000 (11:54 -0500)
commit44d4238f5bb855320c8f35384a5d47c37cb16b81
treeb1c087e8e48307b886be4d5f5384e195781a2545
parente0b42ed52e7e9e5f784c5e2126dd1780cb56b6f6
LP1808268: Add [disable] option to <eg-grid-toolbar-action> in eg2

To test:
1) Apply this commit and recompile eg2.
2) Open the eg2 sandbox (https://yourdomain/eg2/staff/sandbox)
3) Ensure that the action called "Action that needs a single row"
is only enabled when one row of the grid is selected.
4) Create more <eg-grid-toolbar-actions> on grids in eg2.  Make sure
that they all enable/disable those actions per the output of the
functions you reference in the [disabled] attribute.

Signed-off-by: Jane Sandberg <sandbej@linnbenton.edu>
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/eg2/src/app/share/grid/grid-toolbar-action.component.ts
Open-ILS/src/eg2/src/app/share/grid/grid-toolbar.component.html
Open-ILS/src/eg2/src/app/share/grid/grid-toolbar.component.ts
Open-ILS/src/eg2/src/app/share/grid/grid.ts
Open-ILS/src/eg2/src/app/staff/sandbox/sandbox.component.html
Open-ILS/src/eg2/src/app/staff/sandbox/sandbox.component.ts