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>
Mon, 17 Dec 2018 15:39:45 +0000 (10:39 -0500)
commit2d1af92f70d7d074e62406e118a07527b65c9887
tree555dca9f9d9a1f0240d397d35a052561fde7ba0b
parentd32427162b215f5b48388596ccde7a60976c60fb
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