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 17:00:56 +0000 (12:00 -0500)
commitc22dc19b8e6516794d29111dce8c501055878dd9
tree92ae41a52e50c785b36c122ff19dcce9cc8f0116
parent9f6db569aba8118f1a654fce9165aa7f6c68a9eb
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