lp1839341 Minor Tweaks
authorKyle Huckins <khuckins@catalyte.io>
Mon, 25 Nov 2019 18:05:48 +0000 (18:05 +0000)
committerJane Sandberg <sandbergja@gmail.com>
Thu, 13 Oct 2022 16:04:00 +0000 (09:04 -0700)
- Add aria-label to Filter Input
- Add Name column to settings grid
- Correctly Parse HTML links in setting descriptions
- Correctly clear Value column when deleting settings

Signed-off-by: Kyle Huckins <khuckins@catalyte.io>
 Changes to be committed:
modified:   Open-ILS/src/eg2/src/app/staff/amin/local/org-unit-settings/org-unit-settings.component.html
modified:   Open-ILS/src/eg2/src/app/staff/admin/local/org-unit-settings/edit-org-unit-setting-dialog.component.html
modified:   Open-ILS/src/eg2/src/app/staff/admin/local/org-unit-settings/org-unit-settings.component.ts

Signed-off-by: Jane Sandberg <sandbej@linnbenton.edu>
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Signed-off-by: Jane Sandberg <sandbergja@gmail.com>
Open-ILS/src/eg2/src/app/staff/admin/local/org-unit-settings/edit-org-unit-setting-dialog.component.html
Open-ILS/src/eg2/src/app/staff/admin/local/org-unit-settings/org-unit-settings.component.html
Open-ILS/src/eg2/src/app/staff/admin/local/org-unit-settings/org-unit-settings.component.ts

index eae497c..a2ef464 100644 (file)
@@ -14,7 +14,7 @@
     </div>
     <div class="row justify-content-center">
         <div class="col">
-            <span i18n>{{entry.description}}</span>
+            <span i18n [innerHTML]="entry.description"></span>
         </div>
     </div>
     <div class="row mt-3">
index 1da8149..8c1e88d 100644 (file)
@@ -28,6 +28,8 @@
             class="form-control"
             [(ngModel)]="filterString"
             (blur)="applyFilter()"
+            aria-label="Filter Settings"
+            i18n-aria-label
         />
         <button class="btn btn-outline-dark mr-1" i18n>Filter</button>
         <button class="btn btn-outline-dark mr-1" i18n
@@ -55,6 +57,7 @@
       [cellTemplate]="editCellTemplate"></eg-grid-column>
     <eg-grid-column i18n-label label="History" name="history"
       [cellTemplate]="historyCellTemplate"></eg-grid-column>
+    <eg-grid-column path="name" label="Name" i18n-label [hidden]="true"></eg-grid-column>
     <eg-grid-column path="grp" label="Group" i18n-label></eg-grid-column>
     <eg-grid-column path="label" label="Setting" [index]="true" i18n-label></eg-grid-column>
     <eg-grid-column path="context.shortname()" label="Context" i18n-label></eg-grid-column>
index 9422b62..5d4dd80 100644 (file)
@@ -243,6 +243,7 @@ export class OrgUnitSettingsComponent {
                     setting => setting.name == entry.name
                 )[0];
                 settingsObj.value = null;
+                settingsObj.value_str = null;
                 settingsObj._org_unit = null;
                 settingsObj.context = null;
             }