LP1830973 Ang8 migration
authorBill Erickson <berickxx@gmail.com>
Mon, 8 Jul 2019 16:02:31 +0000 (12:02 -0400)
committerBill Erickson <berickxx@gmail.com>
Mon, 8 Jul 2019 16:02:31 +0000 (12:02 -0400)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
40 files changed:
Open-ILS/src/eg2/src/app/share/combobox/combobox.component.ts
Open-ILS/src/eg2/src/app/share/dialog/dialog.component.ts
Open-ILS/src/eg2/src/app/share/fm-editor/fm-editor.component.ts
Open-ILS/src/eg2/src/app/share/grid/grid-print.component.ts
Open-ILS/src/eg2/src/app/share/org-select/org-select.component.ts
Open-ILS/src/eg2/src/app/share/title/title.component.ts
Open-ILS/src/eg2/src/app/share/util/bool.component.spec.ts
Open-ILS/src/eg2/src/app/staff/admin/server/org-unit-type.component.ts
Open-ILS/src/eg2/src/app/staff/admin/workstation/workstations/workstations.component.ts
Open-ILS/src/eg2/src/app/staff/cat/vandelay/export.component.ts
Open-ILS/src/eg2/src/app/staff/cat/vandelay/import.component.ts
Open-ILS/src/eg2/src/app/staff/cat/vandelay/match-set-expression.component.ts
Open-ILS/src/eg2/src/app/staff/cat/vandelay/match-set-list.component.ts
Open-ILS/src/eg2/src/app/staff/cat/vandelay/match-set-quality.component.ts
Open-ILS/src/eg2/src/app/staff/cat/vandelay/queue-items.component.ts
Open-ILS/src/eg2/src/app/staff/cat/vandelay/queue-list.component.ts
Open-ILS/src/eg2/src/app/staff/cat/vandelay/queue.component.ts
Open-ILS/src/eg2/src/app/staff/cat/vandelay/queued-record-matches.component.ts
Open-ILS/src/eg2/src/app/staff/cat/vandelay/record-items.component.ts
Open-ILS/src/eg2/src/app/staff/catalog/basket-actions.component.ts
Open-ILS/src/eg2/src/app/staff/catalog/browse.component.ts
Open-ILS/src/eg2/src/app/staff/catalog/cnbrowse.component.ts
Open-ILS/src/eg2/src/app/staff/catalog/record/conjoined.component.ts
Open-ILS/src/eg2/src/app/staff/catalog/record/copies.component.ts
Open-ILS/src/eg2/src/app/staff/catalog/record/holdings.component.ts
Open-ILS/src/eg2/src/app/staff/catalog/record/parts.component.ts
Open-ILS/src/eg2/src/app/staff/catalog/record/record.component.ts
Open-ILS/src/eg2/src/app/staff/sandbox/sandbox.component.ts
Open-ILS/src/eg2/src/app/staff/share/admin-page/admin-page.component.ts
Open-ILS/src/eg2/src/app/staff/share/booking/make-bookable-dialog.component.ts
Open-ILS/src/eg2/src/app/staff/share/holdings/conjoined-items-dialog.component.ts
Open-ILS/src/eg2/src/app/staff/share/holdings/copy-alerts-dialog.component.ts
Open-ILS/src/eg2/src/app/staff/share/holdings/delete-volcopy-dialog.component.ts
Open-ILS/src/eg2/src/app/staff/share/holdings/mark-damaged-dialog.component.ts
Open-ILS/src/eg2/src/app/staff/share/holdings/mark-missing-dialog.component.ts
Open-ILS/src/eg2/src/app/staff/share/holdings/replace-barcode-dialog.component.ts
Open-ILS/src/eg2/src/app/staff/share/holds/cancel-dialog.component.ts
Open-ILS/src/eg2/src/app/staff/share/holds/grid.component.ts
Open-ILS/src/eg2/src/app/staff/share/holds/retarget-dialog.component.ts
Open-ILS/src/eg2/src/app/staff/share/holds/transfer-dialog.component.ts

index 63f964e..1adaae8 100644 (file)
@@ -30,7 +30,7 @@ export class ComboboxComponent implements OnInit {
     click$: Subject<string>;
     entrylist: ComboboxEntry[];
 
-    @ViewChild('instance') instance: NgbTypeahead;
+    @ViewChild('instance', { static: true }) instance: NgbTypeahead;
 
     // Applies a name attribute to the input.
     // Useful in forms.
index 79a5c86..1532a1f 100644 (file)
@@ -37,7 +37,7 @@ export class DialogComponent implements OnInit {
     @Input() public dialogTitle: string;
 
     // Pointer to the dialog content template.
-    @ViewChild('dialogContent')
+    @ViewChild('dialogContent', {static: false})
     private dialogContent: TemplateRef<any>;
 
     // Emitted after open() is called on the ngbModal.
index f25839b..86fec5e 100644 (file)
@@ -131,7 +131,7 @@ export class FmRecordEditorComponent
     // Emit an error message when the save action fails.
     @Output() onError$ = new EventEmitter<string>();
 
-    @ViewChild('translator') private translator: TranslateComponent;
+    @ViewChild('translator', { static: true }) private translator: TranslateComponent;
 
     // IDL info for the the selected IDL class
     idlDef: any;
index f73e26b..f7c857a 100644 (file)
@@ -13,8 +13,8 @@ import {GridContext} from '@eg/share/grid/grid';
 export class GridPrintComponent {
 
     @Input() gridContext: GridContext;
-    @ViewChild('printTemplate') private printTemplate: TemplateRef<any>;
-    @ViewChild('progressDialog')
+    @ViewChild('printTemplate', { static: true }) private printTemplate: TemplateRef<any>;
+    @ViewChild('progressDialog', { static: true })
         private progressDialog: ProgressDialogComponent;
 
     constructor(private printer: PrintService) {}
index f455c36..233aa54 100644 (file)
@@ -33,7 +33,7 @@ export class OrgSelectComponent implements OnInit {
     // Disable the entire input
     @Input() disabled: boolean;
 
-    @ViewChild('instance') instance: NgbTypeahead;
+    @ViewChild('instance', { static: false }) instance: NgbTypeahead;
 
     // Placeholder text for selector input
     @Input() placeholder = '';
index 8dc1871..d1ff7eb 100644 (file)
@@ -32,7 +32,7 @@ export class TitleComponent implements AfterViewInit {
         this.setTitle();
     }
 
-    @ViewChild('titleString') titleString: StringComponent;
+    @ViewChild('titleString', { static: true }) titleString: StringComponent;
 
     constructor(private title: Title) {}
 
index 3279a98..8bdddac 100644 (file)
@@ -9,7 +9,7 @@ describe('BoolDisplayComponent', () => {
         template: `<eg-bool></eg-bool>`
     })
     class TestHostComponent {
-        @ViewChild(BoolDisplayComponent, /* TODO: add static flag */ {})
+        @ViewChild(BoolDisplayComponent, {static: false})
         public boolDisplayComponent: BoolDisplayComponent;
     }
 
index 20938c4..f73557d 100644 (file)
@@ -17,11 +17,11 @@ export class OrgUnitTypeComponent implements OnInit {
 
     tree: Tree;
     selected: TreeNode;
-    @ViewChild('editDialog') editDialog: FmRecordEditorComponent;
-    @ViewChild('editString') editString: StringComponent;
-    @ViewChild('createString') createString: StringComponent;
-    @ViewChild('errorString') errorString: StringComponent;
-    @ViewChild('delConfirm') delConfirm: ConfirmDialogComponent;
+    @ViewChild('editDialog', { static: true }) editDialog: FmRecordEditorComponent;
+    @ViewChild('editString', { static: true }) editString: StringComponent;
+    @ViewChild('createString', { static: true }) createString: StringComponent;
+    @ViewChild('errorString', { static: true }) errorString: StringComponent;
+    @ViewChild('delConfirm', { static: true }) delConfirm: ConfirmDialogComponent;
 
     constructor(
         private idl: IdlService,
index 5ce77d4..457fb94 100644 (file)
@@ -28,7 +28,7 @@ export class WorkstationsComponent implements OnInit {
     newName: string;
     defaultName: string;
 
-    @ViewChild('workstationExistsDialog')
+    @ViewChild('workstationExistsDialog', { static: true })
     private wsExistsDialog: ConfirmDialogComponent;
 
     // Org selector options.
index 648f4d5..cb30278 100644 (file)
@@ -29,8 +29,8 @@ export class ExportComponent implements AfterViewInit, OnInit {
     exportingBasket: boolean;
     basketRecords: number[];
 
-    @ViewChild('fileSelector') private fileSelector;
-    @ViewChild('exportProgress')
+    @ViewChild('fileSelector', { static: false }) private fileSelector;
+    @ViewChild('exportProgress', { static: true })
         private exportProgress: ProgressInlineComponent;
 
     constructor(
index 15b5640..98ea54a 100644 (file)
@@ -104,31 +104,31 @@ export class ImportComponent implements OnInit, AfterViewInit, OnDestroy {
     formTemplates: {[name: string]: any};
     newTemplateName: string;
 
-    @ViewChild('fileSelector') private fileSelector;
-    @ViewChild('uploadProgress')
+    @ViewChild('fileSelector', { static: false }) private fileSelector;
+    @ViewChild('uploadProgress', { static: true })
         private uploadProgress: ProgressInlineComponent;
-    @ViewChild('enqueueProgress')
+    @ViewChild('enqueueProgress', { static: true })
         private enqueueProgress: ProgressInlineComponent;
-    @ViewChild('importProgress')
+    @ViewChild('importProgress', { static: true })
         private importProgress: ProgressInlineComponent;
 
     // Need these refs so values can be applied via external stimuli
-    @ViewChild('formTemplateSelector')
+    @ViewChild('formTemplateSelector', { static: true })
         private formTemplateSelector: ComboboxComponent;
-    @ViewChild('recordTypeSelector')
+    @ViewChild('recordTypeSelector', { static: true })
         private recordTypeSelector: ComboboxComponent;
-    @ViewChild('bibSourceSelector')
+    @ViewChild('bibSourceSelector', { static: true })
         private bibSourceSelector: ComboboxComponent;
-    @ViewChild('matchSetSelector')
+    @ViewChild('matchSetSelector', { static: true })
         private matchSetSelector: ComboboxComponent;
-    @ViewChild('holdingsProfileSelector')
+    @ViewChild('holdingsProfileSelector', { static: true })
         private holdingsProfileSelector: ComboboxComponent;
-    @ViewChild('mergeProfileSelector')
+    @ViewChild('mergeProfileSelector', { static: true })
         private mergeProfileSelector: ComboboxComponent;
-    @ViewChild('fallThruMergeProfileSelector')
+    @ViewChild('fallThruMergeProfileSelector', { static: true })
         private fallThruMergeProfileSelector: ComboboxComponent;
 
-    @ViewChild('dupeQueueAlert')
+    @ViewChild('dupeQueueAlert', { static: true })
         private dupeQueueAlert: AlertDialogComponent;
 
     constructor(
index f93c1e7..891b01a 100644 (file)
@@ -35,7 +35,7 @@ export class MatchSetExpressionComponent implements OnInit {
     newPointType: string;
     newId: number;
 
-    @ViewChild('newPoint') newPoint: MatchSetNewPointComponent;
+    @ViewChild('newPoint', { static: true }) newPoint: MatchSetNewPointComponent;
 
     constructor(
         private idl: IdlService,
index c33999a..bd8da8d 100644 (file)
@@ -18,8 +18,8 @@ export class MatchSetListComponent implements AfterViewInit {
     gridSource: GridDataSource;
     deleteSelected: (rows: IdlObject[]) => void;
     createNew: () => void;
-    @ViewChild('grid') grid: GridComponent;
-    @ViewChild('editDialog') editDialog: FmRecordEditorComponent;
+    @ViewChild('grid', { static: true }) grid: GridComponent;
+    @ViewChild('editDialog', { static: true }) editDialog: FmRecordEditorComponent;
 
     constructor(
         private router: Router,
index 7409ef9..5abd71e 100644 (file)
@@ -31,8 +31,8 @@ export class MatchSetQualityComponent implements OnInit {
     newPointType: string;
     matchSetType: string;
     dataSource: GridDataSource;
-    @ViewChild('newPoint') newPoint: MatchSetNewPointComponent;
-    @ViewChild('grid') grid: GridComponent;
+    @ViewChild('newPoint', { static: true }) newPoint: MatchSetNewPointComponent;
+    @ViewChild('grid', { static: true }) grid: GridComponent;
     deleteSelected: (rows: IdlObject[]) => void;
 
     constructor(
index cae7c54..4139a1f 100644 (file)
@@ -20,7 +20,7 @@ export class QueueItemsComponent {
     filterImportErrors: boolean;
 
     gridSource: GridDataSource;
-    @ViewChild('itemsGrid') itemsGrid: GridComponent;
+    @ViewChild('itemsGrid', { static: true }) itemsGrid: GridComponent;
 
     constructor(
         private router: Router,
index 5edde1e..b090b7c 100644 (file)
@@ -22,8 +22,8 @@ export class QueueListComponent {
     // points to the currently active grid.
     queueGrid: GridComponent;
 
-    @ViewChild('bibQueueGrid') bibQueueGrid: GridComponent;
-    @ViewChild('authQueueGrid') authQueueGrid: GridComponent;
+    @ViewChild('bibQueueGrid', { static: false }) bibQueueGrid: GridComponent;
+    @ViewChild('authQueueGrid', { static: false }) authQueueGrid: GridComponent;
 
     constructor(
         private router: Router,
index 19f08ad..6e6fca2 100644 (file)
@@ -34,9 +34,9 @@ export class QueueComponent implements OnInit, AfterViewInit {
     // keep a local copy for convenience
     attrDefs: IdlObject[];
 
-    @ViewChild('queueGrid') queueGrid: GridComponent;
-    @ViewChild('confirmDelDlg') confirmDelDlg: ConfirmDialogComponent;
-    @ViewChild('progressDlg') progressDlg: ProgressDialogComponent;
+    @ViewChild('queueGrid', { static: true }) queueGrid: GridComponent;
+    @ViewChild('confirmDelDlg', { static: false }) confirmDelDlg: ConfirmDialogComponent;
+    @ViewChild('progressDlg', { static: true }) progressDlg: ProgressDialogComponent;
 
     constructor(
         private router: Router,
index f50c482..a4ac067 100644 (file)
@@ -21,8 +21,8 @@ export class QueuedRecordMatchesComponent implements OnInit {
 
     @Input() queueType: string;
     @Input() recordId: number;
-    @ViewChild('bibGrid') bibGrid: GridComponent;
-    @ViewChild('authGrid') authGrid: GridComponent;
+    @ViewChild('bibGrid', { static: false }) bibGrid: GridComponent;
+    @ViewChild('authGrid', { static: false }) authGrid: GridComponent;
 
     queuedRecord: IdlObject;
     bibDataSource: GridDataSource;
index d42f55d..6651197 100644 (file)
@@ -17,7 +17,7 @@ export class RecordItemsComponent {
     @Input() recordId: number;
 
     gridSource: GridDataSource;
-    @ViewChild('itemsGrid') itemsGrid: GridComponent;
+    @ViewChild('itemsGrid', { static: true }) itemsGrid: GridComponent;
 
     constructor(
         private net: NetService,
index c42b7dd..5efbd43 100644 (file)
@@ -15,7 +15,7 @@ export class BasketActionsComponent implements OnInit {
 
     basketAction: string;
 
-    @ViewChild('addBasketToBucketDialog')
+    @ViewChild('addBasketToBucketDialog', { static: true })
         addToBucketDialog: BucketDialogComponent;
 
     constructor(
index bf46a4e..507a7c0 100644 (file)
@@ -7,7 +7,7 @@ import {SearchFormComponent} from './search-form.component';
 })
 export class BrowseComponent implements OnInit {
 
-    @ViewChild('searchForm') searchForm: SearchFormComponent;
+    @ViewChild('searchForm', { static: true }) searchForm: SearchFormComponent;
 
     constructor(
         private staffCat: StaffCatalogService
index e0f7bf7..e3ab141 100644 (file)
@@ -7,7 +7,7 @@ import {SearchFormComponent} from './search-form.component';
 })
 export class CnBrowseComponent implements OnInit {
 
-    @ViewChild('searchForm') searchForm: SearchFormComponent;
+    @ViewChild('searchForm', { static: true }) searchForm: SearchFormComponent;
 
     constructor(
         private staffCat: StaffCatalogService,
index bf6e682..635f76e 100644 (file)
@@ -24,12 +24,12 @@ export class ConjoinedComponent implements OnInit {
     gridDataSource: GridDataSource;
     idsToUnlink: number[];
 
-    @ViewChild('conjoinedGrid') private grid: GridComponent;
+    @ViewChild('conjoinedGrid', { static: true }) private grid: GridComponent;
 
-    @ViewChild('conjoinedDialog')
+    @ViewChild('conjoinedDialog', { static: true })
         private conjoinedDialog: ConjoinedItemsDialogComponent;
 
-    @ViewChild('confirmUnlink')
+    @ViewChild('confirmUnlink', { static: true })
         private confirmUnlink: ConfirmDialogComponent;
 
     constructor(
index a478777..24350d8 100644 (file)
@@ -18,7 +18,7 @@ export class CopiesComponent implements OnInit {
     initDone = false;
     gridDataSource: GridDataSource;
     copyContext: any; // grid context
-    @ViewChild('copyGrid') copyGrid: GridComponent;
+    @ViewChild('copyGrid', { static: true }) copyGrid: GridComponent;
 
     @Input() set recordId(id: number) {
         this.recId = id;
index a89444b..303a46b 100644 (file)
@@ -80,32 +80,32 @@ export class HoldingsMaintenanceComponent implements OnInit {
     initDone = false;
     gridDataSource: GridDataSource;
     gridTemplateContext: any;
-    @ViewChild('holdingsGrid') holdingsGrid: GridComponent;
+    @ViewChild('holdingsGrid', { static: true }) holdingsGrid: GridComponent;
 
     // Manage visibility of various sub-sections
-    @ViewChild('volsCheckbox')
+    @ViewChild('volsCheckbox', { static: true })
         private volsCheckbox: GridToolbarCheckboxComponent;
-    @ViewChild('copiesCheckbox')
+    @ViewChild('copiesCheckbox', { static: true })
         private copiesCheckbox: GridToolbarCheckboxComponent;
-    @ViewChild('emptyVolsCheckbox')
+    @ViewChild('emptyVolsCheckbox', { static: true })
         private emptyVolsCheckbox: GridToolbarCheckboxComponent;
-    @ViewChild('emptyLibsCheckbox')
+    @ViewChild('emptyLibsCheckbox', { static: true })
         private emptyLibsCheckbox: GridToolbarCheckboxComponent;
-    @ViewChild('markDamagedDialog')
+    @ViewChild('markDamagedDialog', { static: true })
         private markDamagedDialog: MarkDamagedDialogComponent;
-    @ViewChild('markMissingDialog')
+    @ViewChild('markMissingDialog', { static: true })
         private markMissingDialog: MarkMissingDialogComponent;
-    @ViewChild('copyAlertsDialog')
+    @ViewChild('copyAlertsDialog', { static: true })
         private copyAlertsDialog: CopyAlertsDialogComponent;
-    @ViewChild('replaceBarcode')
+    @ViewChild('replaceBarcode', { static: true })
         private replaceBarcode: ReplaceBarcodeDialogComponent;
-    @ViewChild('deleteVolcopy')
+    @ViewChild('deleteVolcopy', { static: true })
         private deleteVolcopy: DeleteVolcopyDialogComponent;
-    @ViewChild('bucketDialog')
+    @ViewChild('bucketDialog', { static: true })
         private bucketDialog: BucketDialogComponent;
-    @ViewChild('conjoinedDialog')
+    @ViewChild('conjoinedDialog', { static: true })
         private conjoinedDialog: ConjoinedItemsDialogComponent;
-    @ViewChild('makeBookableDialog')
+    @ViewChild('makeBookableDialog', { static: true })
         private makeBookableDialog: MakeBookableDialogComponent;
 
     holdingsTree: HoldingsTree;
index 2f59374..236e1fe 100644 (file)
@@ -18,9 +18,9 @@ export class PartsComponent implements OnInit {
     recId: number;
     gridDataSource: GridDataSource;
     initDone: boolean;
-    @ViewChild('partsGrid') partsGrid: GridComponent;
-    @ViewChild('editDialog') editDialog: FmRecordEditorComponent;
-    @ViewChild('mergeDialog') mergeDialog: PartMergeDialogComponent;
+    @ViewChild('partsGrid', { static: true }) partsGrid: GridComponent;
+    @ViewChild('editDialog', { static: true }) editDialog: FmRecordEditorComponent;
+    @ViewChild('mergeDialog', { static: true }) mergeDialog: PartMergeDialogComponent;
 
     canCreate: boolean;
     canDelete: boolean;
index c70b565..8c1da95 100644 (file)
@@ -20,7 +20,7 @@ export class RecordComponent implements OnInit {
     recordTab: string;
     summary: BibRecordSummary;
     searchContext: CatalogSearchContext;
-    @ViewChild('recordTabs') recordTabs: NgbTabset;
+    @ViewChild('recordTabs', { static: true }) recordTabs: NgbTabset;
     defaultTab: string; // eg.cat.default_record_tab
 
     constructor(
index de94b5e..b955ac2 100644 (file)
@@ -21,16 +21,16 @@ import {FmRecordEditorComponent} from '@eg/share/fm-editor/fm-editor.component';
 })
 export class SandboxComponent implements OnInit {
 
-    @ViewChild('progressDialog')
+    @ViewChild('progressDialog', { static: true })
     private progressDialog: ProgressDialogComponent;
 
-    @ViewChild('dateSelect')
+    @ViewChild('dateSelect', { static: false })
     private dateSelector: DateSelectComponent;
 
-    @ViewChild('printTemplate')
+    @ViewChild('printTemplate', { static: true })
     private printTemplate: TemplateRef<any>;
 
-    @ViewChild('fmRecordEditor')
+    @ViewChild('fmRecordEditor', { static: true })
     private fmRecordEditor: FmRecordEditorComponent;
 
     // @ViewChild('helloStr') private helloStr: StringComponent;
index a1dc1c6..ae7c546 100644 (file)
@@ -66,13 +66,13 @@ export class AdminPageComponent implements OnInit {
     // Optional comma-separated list of read-only fields
     @Input() readonlyFields: string;
 
-    @ViewChild('grid') grid: GridComponent;
-    @ViewChild('editDialog') editDialog: FmRecordEditorComponent;
-    @ViewChild('successString') successString: StringComponent;
-    @ViewChild('createString') createString: StringComponent;
-    @ViewChild('createErrString') createErrString: StringComponent;
-    @ViewChild('updateFailedString') updateFailedString: StringComponent;
-    @ViewChild('translator') translator: TranslateComponent;
+    @ViewChild('grid', { static: true }) grid: GridComponent;
+    @ViewChild('editDialog', { static: true }) editDialog: FmRecordEditorComponent;
+    @ViewChild('successString', { static: true }) successString: StringComponent;
+    @ViewChild('createString', { static: true }) createString: StringComponent;
+    @ViewChild('createErrString', { static: true }) createErrString: StringComponent;
+    @ViewChild('updateFailedString', { static: true }) updateFailedString: StringComponent;
+    @ViewChild('translator', { static: true }) translator: TranslateComponent;
 
     idlClassDef: any;
     pkeyField: string;
index 9df3f9f..4a66cbc 100644 (file)
@@ -34,8 +34,8 @@ export class MakeBookableDialogComponent
 
     onOpenSub: Subscription;
 
-    @ViewChild('successMsg') private successMsg: StringComponent;
-    @ViewChild('errorMsg') private errorMsg: StringComponent;
+    @ViewChild('successMsg', { static: true }) private successMsg: StringComponent;
+    @ViewChild('errorMsg', { static: true }) private errorMsg: StringComponent;
 
     constructor(
         private modal: NgbModal, // required for passing to parent
index 98bd462..5747f7c 100644 (file)
@@ -38,8 +38,8 @@ export class ConjoinedItemsDialogComponent
     existingMaps: any;
     onOpenSub: Subscription;
 
-    @ViewChild('successMsg') private successMsg: StringComponent;
-    @ViewChild('errorMsg') private errorMsg: StringComponent;
+    @ViewChild('successMsg', { static: true }) private successMsg: StringComponent;
+    @ViewChild('errorMsg', { static: true }) private errorMsg: StringComponent;
 
     constructor(
         private modal: NgbModal, // required for passing to parent
index 16fd66c..439c546 100644 (file)
@@ -49,8 +49,8 @@ export class CopyAlertsDialogComponent
     newAlert: IdlObject;
     changesMade: boolean;
 
-    @ViewChild('successMsg') private successMsg: StringComponent;
-    @ViewChild('errorMsg') private errorMsg: StringComponent;
+    @ViewChild('successMsg', { static: true }) private successMsg: StringComponent;
+    @ViewChild('errorMsg', { static: true }) private errorMsg: StringComponent;
 
     constructor(
         private modal: NgbModal, // required for passing to parent
index dc86d9b..3e4f3c9 100644 (file)
@@ -39,10 +39,10 @@ export class DeleteVolcopyDialogComponent
     numSucceeded: number;
     numFailed: number;
 
-    @ViewChild('successMsg')
+    @ViewChild('successMsg', { static: true })
         private successMsg: StringComponent;
 
-    @ViewChild('errorMsg')
+    @ViewChild('errorMsg', { static: true })
         private errorMsg: StringComponent;
 
     constructor(
index 346b3f0..9b63441 100644 (file)
@@ -37,8 +37,8 @@ export class MarkDamagedDialogComponent
     newNote: string;
     newBtype: number;
 
-    @ViewChild('successMsg') private successMsg: StringComponent;
-    @ViewChild('errorMsg') private errorMsg: StringComponent;
+    @ViewChild('successMsg', { static: true }) private successMsg: StringComponent;
+    @ViewChild('errorMsg', { static: true }) private errorMsg: StringComponent;
 
 
     // Charge data returned from the server requesting additional charge info.
index 14e8ceb..f68d31f 100644 (file)
@@ -25,10 +25,10 @@ export class MarkMissingDialogComponent
     numSucceeded: number;
     numFailed: number;
 
-    @ViewChild('successMsg')
+    @ViewChild('successMsg', { static: true })
         private successMsg: StringComponent;
 
-    @ViewChild('errorMsg')
+    @ViewChild('errorMsg', { static: true })
         private errorMsg: StringComponent;
 
     constructor(
index 2b85d38..b5288db 100644 (file)
@@ -34,10 +34,10 @@ export class ReplaceBarcodeDialogComponent
     numSucceeded: number;
     numFailed: number;
 
-    @ViewChild('successMsg')
+    @ViewChild('successMsg', { static: true })
         private successMsg: StringComponent;
 
-    @ViewChild('errorMsg')
+    @ViewChild('errorMsg', { static: true })
         private errorMsg: StringComponent;
 
     constructor(
index d9c9295..2320081 100644 (file)
@@ -23,8 +23,8 @@ export class HoldCancelDialogComponent
     extends DialogComponent implements OnInit {
 
     @Input() holdIds: number[];
-    @ViewChild('successMsg') private successMsg: StringComponent;
-    @ViewChild('errorMsg') private errorMsg: StringComponent;
+    @ViewChild('successMsg', { static: true }) private successMsg: StringComponent;
+    @ViewChild('errorMsg', { static: true }) private errorMsg: StringComponent;
 
     changesApplied: boolean;
     numSucceeded: number;
index bdecd41..2e95fa4 100644 (file)
@@ -54,20 +54,20 @@ export class HoldsGridComponent implements OnInit {
     editHolds: number[];
     transferTarget: number;
 
-    @ViewChild('holdsGrid') private holdsGrid: GridComponent;
-    @ViewChild('progressDialog')
+    @ViewChild('holdsGrid', { static: false }) private holdsGrid: GridComponent;
+    @ViewChild('progressDialog', { static: true })
         private progressDialog: ProgressDialogComponent;
-    @ViewChild('transferDialog')
+    @ViewChild('transferDialog', { static: true })
         private transferDialog: HoldTransferDialogComponent;
-    @ViewChild('markDamagedDialog')
+    @ViewChild('markDamagedDialog', { static: true })
         private markDamagedDialog: MarkDamagedDialogComponent;
-    @ViewChild('markMissingDialog')
+    @ViewChild('markMissingDialog', { static: true })
         private markMissingDialog: MarkMissingDialogComponent;
-    @ViewChild('retargetDialog')
+    @ViewChild('retargetDialog', { static: true })
         private retargetDialog: HoldRetargetDialogComponent;
-    @ViewChild('cancelDialog')
+    @ViewChild('cancelDialog', { static: true })
         private cancelDialog: HoldCancelDialogComponent;
-    @ViewChild('manageDialog')
+    @ViewChild('manageDialog', { static: true })
         private manageDialog: HoldManageDialogComponent;
 
     // Bib record ID.
index bb31a48..25ff656 100644 (file)
@@ -22,8 +22,8 @@ export class HoldRetargetDialogComponent
     extends DialogComponent implements OnInit {
 
     @Input() holdIds: number | number[];
-    @ViewChild('successMsg') private successMsg: StringComponent;
-    @ViewChild('errorMsg') private errorMsg: StringComponent;
+    @ViewChild('successMsg', { static: true }) private successMsg: StringComponent;
+    @ViewChild('errorMsg', { static: true }) private errorMsg: StringComponent;
 
     changesApplied: boolean;
     numSucceeded: number;
index 796aa10..163aaad 100644 (file)
@@ -24,9 +24,9 @@ export class HoldTransferDialogComponent
 
     @Input() holdIds: number | number[];
 
-    @ViewChild('successMsg') private successMsg: StringComponent;
-    @ViewChild('errorMsg') private errorMsg: StringComponent;
-    @ViewChild('targetNeeded') private targetNeeded: StringComponent;
+    @ViewChild('successMsg', { static: true }) private successMsg: StringComponent;
+    @ViewChild('errorMsg', { static: true }) private errorMsg: StringComponent;
+    @ViewChild('targetNeeded', { static: true }) private targetNeeded: StringComponent;
 
     transferTarget: number;
     changesApplied: boolean;