LP#2007877: various fixes to Server Admin Print Templates page user/dyrcona/lp2013100-angular-staff-summary-backport-3.10
authorGalen Charlton <gmc@equinoxOLI.org>
Mon, 20 Feb 2023 22:13:45 +0000 (17:13 -0500)
committerJason Stephenson <jason@sigio.com>
Tue, 28 Mar 2023 18:41:10 +0000 (14:41 -0400)
commit0064d7b498ed0f853cc5498d91c0f65f381b5f45
treecaa56dbc1dedee3605f83b98bbd984951a369867
parent9827a09b31cad30b0c8b93878b0baaaa192ab31a
LP#2007877: various fixes to Server Admin Print Templates page

This patch fixes a regression introduced by the switch to NgbNav
as well as a number of other issues.

To test
-------
[1] Open the Server Administration -> Print Templates page and select
    a print template. Observe that the template editor is not displayed
    and that there are errors in the browser console.
[2] Apply the patch and repeat step 1. This time, the template is
    displayed along with its previewed.
[3] Switch to the Sample Data tab, then select another template. Observe
    that the template is reloaded and the active tab switched to the template
    editor.
[4] Select a template such as "Checkin" that does not have stock
    sample data. Observe that the Preview and Compiled Content panes on
    the template editor tab are empty and that the Sample Data tab
    has an empty control

Signed-off-by: Galen Charlton <gmc@equinoxOLI.org>
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Jason Stephenson <jason@sigio.com>
Open-ILS/src/eg2/src/app/staff/admin/server/print-template.component.html
Open-ILS/src/eg2/src/app/staff/admin/server/print-template.component.ts