LP#2007877: various fixes to Server Admin Print Templates page user/gmcharlt/lp2007877_fix_print_template_editor
authorGalen Charlton <gmc@equinoxOLI.org>
Mon, 20 Feb 2023 22:13:45 +0000 (17:13 -0500)
committerGalen Charlton <gmc@equinoxOLI.org>
Mon, 20 Feb 2023 23:05:03 +0000 (18:05 -0500)
commitfba9d84bd3a91732c0e072b5d31f5d9b3e127ef7
treed39186ef018929452bd4002f1b6bbca75f4a8e96
parent2bb8b48283ae32e685c0a3061f8482cf0708b048
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>
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