]> git.evergreen-ils.org Git - 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:12:59 +0000 (12:12 -0500)
commit2f505a51fab34ff6d7ed299815472d7c04f3d2dd
treea61f24d236f0d971b8896a659f7d2f7d504935b5
parent2dc42228985912b638e70107abaac3db61b91773
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