LP1840050 Angular staff banner sets title
authorBill Erickson <berickxx@gmail.com>
Fri, 16 Aug 2019 21:00:53 +0000 (17:00 -0400)
committerGalen Charlton <gmc@equinoxinitiative.org>
Fri, 6 Sep 2019 17:00:09 +0000 (13:00 -0400)
Any UI that declares a staff banner gets the same text set as the
page/title title as well.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/src/eg2/src/app/staff/share/staff-banner.component.ts

index 13ac684..1274086 100644 (file)
@@ -2,10 +2,12 @@ import {Component, OnInit, Input} from '@angular/core';
 
 @Component({
   selector: 'eg-staff-banner',
-  template:
-    '<div class="lead alert alert-primary text-center pt-1 pb-1" role="alert">' +
-      '<span>{{bannerText}}</span>' +
-    '</div>'
+  template: `
+    <div class="lead alert alert-primary text-center pt-1 pb-1" role="alert">
+      <eg-title i18n-prefix [prefix]="bannerText"></eg-title>
+       <span>{{bannerText}}</span>
+    </div>
+    `
 })
 
 export class StaffBannerComponent {