From: Bill Erickson Date: Tue, 29 Oct 2019 17:54:26 +0000 (-0400) Subject: LP1849137 Catalog Patron View loading icon X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=1fae8ec807e88cee21e18e8ec74b606e5bcdab91;p=contrib%2FConifer.git LP1849137 Catalog Patron View loading icon Display the usual loading circle icon while the embedded patron view iframe is loading. Signed-off-by: Bill Erickson Signed-off-by: Jane Sandberg --- diff --git a/Open-ILS/src/eg2/src/app/staff/catalog/record/opac.component.html b/Open-ILS/src/eg2/src/app/staff/catalog/record/opac.component.html index 8a67300789..adbaeec39e 100644 --- a/Open-ILS/src/eg2/src/app/staff/catalog/record/opac.component.html +++ b/Open-ILS/src/eg2/src/app/staff/catalog/record/opac.component.html @@ -1,4 +1,8 @@ +
+
+
+ diff --git a/Open-ILS/src/eg2/src/app/staff/catalog/record/opac.component.ts b/Open-ILS/src/eg2/src/app/staff/catalog/record/opac.component.ts index 4a5bd036fa..98eadf38da 100644 --- a/Open-ILS/src/eg2/src/app/staff/catalog/record/opac.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/catalog/record/opac.component.ts @@ -10,6 +10,7 @@ const OPAC_BASE_URL = '/eg/opac/record'; export class OpacViewComponent { url; // SafeResourceUrlImpl + loaded: boolean; _recordId: number; @Input() set recordId(id: number) { @@ -40,6 +41,7 @@ export class OpacViewComponent { const height = 50 + iframe.contentWindow.document.body.offsetHeight; iframe.style.height = `${height}px`; + this.loaded = true; } }