LP 1855781: get eg-help-popover working again collab/sandbergja/lp1855781-circulation-policy-configuration-2
authorJane Sandberg <js7389@princeton.edu>
Wed, 3 May 2023 13:35:33 +0000 (06:35 -0700)
committerJane Sandberg <js7389@princeton.edu>
Wed, 3 May 2023 13:35:33 +0000 (06:35 -0700)
Signed-off-by: Jane Sandberg <js7389@princeton.edu>
Open-ILS/src/eg2/src/app/share/eg-help-popover/eg-help-popover.component.ts
Open-ILS/src/eg2/src/app/share/fm-editor/fm-editor.component.html
Open-ILS/src/eg2/src/app/staff/admin/local/circ_matrix_matchpoint/linked-circ-limit-sets.component.html
Open-ILS/src/eg2/src/app/staff/circ/patron/edit.component.html
Open-ILS/src/eg2/src/app/staff/sandbox/sandbox.component.html

index dce19a7..f02752c 100644 (file)
@@ -18,10 +18,10 @@ export class EgHelpPopoverComponent {
 
     // placement value passed to ngbPopover that controls
     // where the popover is displayed. Values include
-    // 'auto', 'right', 'left', 'top-left', 'bottom-right',
+    // 'auto', 'start', 'end', 'top-start', 'bottom-end',
     // 'top', and so forth.
     @Input()
-    placement = '';
+    placement = 'auto';
 
     // Allow for overriding the default button class.
     // This augments the basic 'btn' class
index e338e52..5926161 100644 (file)
@@ -36,7 +36,7 @@
       <div class="form-group row">
         <div class="col-lg-3">
           <label class="form-label" for="{{idPrefix}}-{{field.name}}">{{field.label}}</label>
-          <eg-help-popover [placement]="'right'" *ngIf="field.helpText" helpText="{{field.helpTextValue}}"></eg-help-popover>
+          <eg-help-popover placement="end" *ngIf="field.helpText" helpText="{{field.helpTextValue}}"></eg-help-popover>
           <ng-container *ngIf="isSafeToNull(field)">
             <br />(<a (click)="setToNull(field)" href='javascript:;'><span i18n>Unset</span></a>)
           </ng-container>
index 04f46ec..76ad913 100644 (file)
@@ -64,7 +64,7 @@
                 (click)="addLinkedSet()"
                 i18n-title title="Add" i18n>Add
             </button>
-            <eg-help-popover i18n-helpText helpText="'Go to Local Admin -> Circulation Limit Sets to Create a Link Limit Set'" ></eg-help-popover>
+            <eg-help-popover i18n-helpText helpText="Go to Local Admin -> Circulation Limit Sets to Create a Link Limit Set" ></eg-help-popover>
         </div>
     </div>
 </div>
index f53c638..0d37e2e 100644 (file)
@@ -55,7 +55,7 @@
     </label>
     <eg-help-popover *ngIf="getFieldDoc(args.cls, args.field)"
       buttonClass="btn-sm text-info p-0 m-0"
-      [placement]="'right'" [helpText]="getFieldDoc(args.cls, args.field)">
+      placement="end" [helpText]="getFieldDoc(args.cls, args.field)">
     </eg-help-popover>
   </div>
 </ng-template>
index e9737bc..26ceb76 100644 (file)
@@ -7,7 +7,7 @@
   prefix=":) {{dynamicTitleText}}"
   suffix="Sandbox">
 </eg-title>
-<eg-help-popover [placement]="'right'" helpText="This page is for random ng stuff!"></eg-help-popover>
+<eg-help-popover [placement]="end" helpText="This page is for random ng stuff!"></eg-help-popover>
 <div class="row flex pt-2">
   <div i18n> Modify Page Title: </div>
   <div class="col-lg-2">