]> git.evergreen-ils.org Git - working/Evergreen.git/commit
LP1808268 eg2 grid action disableOnRows sanity check
authorBill Erickson <berickxx@gmail.com>
Wed, 23 Jan 2019 17:09:18 +0000 (12:09 -0500)
committerBill Erickson <berickxx@gmail.com>
Wed, 23 Jan 2019 17:09:20 +0000 (12:09 -0500)
commit795c2f3c93356059439788e32950e767be343d43
tree1abf1128bdf85a925a0b3ba80a1fb7db1d4a2d9c
parent9776fd8bcb298aa6c97c0e7bf4ca64ca850269a0
LP1808268 eg2 grid action disableOnRows sanity check

The === null test for determining if a disableOnRows handler was set was
not broad enough to capture undefined values.  This commit changes it to
a more generic if() test to cover null/undefined.  Also, instead of
creating a dummy function in the action, the testing code checks for the
presence of the function at run time.

Apply a fix to an ng-lint warning introduced by this series of commits in
the sandbox code.

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.ts
Open-ILS/src/eg2/src/app/staff/sandbox/sandbox.component.ts