]> git.evergreen-ils.org Git - Evergreen.git/commit
LP1830432: Make the org-family-select reusable
authorJane Sandberg <sandbej@linnbenton.edu>
Sun, 23 Jun 2019 17:22:20 +0000 (10:22 -0700)
committerBill Erickson <berickxx@gmail.com>
Wed, 10 Jul 2019 17:55:46 +0000 (13:55 -0400)
commita4490662f5f81b11bb6a38507dc8eae2d669a8b9
treee9f5bc1d0bdfdda29e133849ac7099e71801d957
parent1fe8de72aee2c77d831906985772637a8298713e
LP1830432: Make the org-family-select reusable

This commit removes Bill Erickson's automagic org unit select with
+Ancestors and +Descendants checkboxes from the admin-page component,
and gives it a component of its own, called <eg-org-family-select>.

This commit also makes it compatible with [(ngModel)], reactive forms,
and any custom Angular validators you might want to throw at it.
Examples of all three are available in the sandbox.

Also includes some component tests.

Signed-off-by: Jane Sandberg <sandbej@linnbenton.edu>
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/eg2/src/app/share/org-family-select/org-family-select.component.html [new file with mode: 0644]
Open-ILS/src/eg2/src/app/share/org-family-select/org-family-select.component.spec.ts [new file with mode: 0644]
Open-ILS/src/eg2/src/app/share/org-family-select/org-family-select.component.ts [new file with mode: 0644]
Open-ILS/src/eg2/src/app/staff/common.module.ts
Open-ILS/src/eg2/src/app/staff/sandbox/sandbox.component.html
Open-ILS/src/eg2/src/app/staff/sandbox/sandbox.component.ts
Open-ILS/src/eg2/src/app/staff/sandbox/sandbox.module.ts
Open-ILS/src/eg2/src/app/staff/share/admin-page/admin-page.component.html
Open-ILS/src/eg2/src/app/staff/share/admin-page/admin-page.component.ts