LP#1779158 Recent imports UI polish/debugging user/berick/lp1779158-ang6-vandelay-pre-squash
authorBill Erickson <berickxx@gmail.com>
Thu, 11 Oct 2018 19:20:52 +0000 (15:20 -0400)
committerBill Erickson <berickxx@gmail.com>
Thu, 11 Oct 2018 19:20:52 +0000 (15:20 -0400)
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/eg2/src/app/staff/cat/vandelay/import.component.html
Open-ILS/src/eg2/src/app/staff/cat/vandelay/recent-imports.component.html
Open-ILS/src/eg2/src/app/staff/cat/vandelay/recent-imports.component.ts

index 95be13d..c852332 100644 (file)
       <label i18n>Optional Session Name:</label>
     </div>
     <div class="col-lg-3">
-      <input [(ngModel)]="sessionName" class="form-control" type="text"/>
+      <input [(ngModel)]="sessionName" class="form-control" type="text"
+        i18n-placeholder placeholder="Session Name..."/>
     </div>
     <div class="col-lg-3">
       <label i18n>Remove MARC Field Groups</label>
     </div>
     <div class="col-lg-3" *ngIf="bibTrashGroups.length == 0">
-        <span i18n class="font-italic">No Removal Groups Configured</span>
+        <span i18n class="font-italic">No Groups Configured</span>
     </div>
     <div class="col-lg-3" *ngIf="bibTrashGroups.length">
       <select multiple [(ngModel)]="selectedTrashGroups" 
index d7427f1..6654ac4 100644 (file)
@@ -50,8 +50,8 @@
                   Queue {{tracker.queue().name()}}
                 </a>
               </span>
-              <span class="pl-2" *ngIf="tracker.action_type() == 'enqueue'" i18n>Enqueuing...</span>
-              <span class="pl-2" *ngIf="tracker.action_type() == 'import'" i18n>Importing...</span>
+              <span class="pl-2" *ngIf="tracker.action_type() == 'enqueue'" i18n>Enqueuing... </span>
+              <span class="pl-2" *ngIf="tracker.action_type() == 'import'" i18n>Importing... </span>
               <span *ngIf="tracker.state() == 'active'" i18n>Active</span>
               <span *ngIf="tracker.state() == 'complete'" i18n>Complete</span>
               <span *ngIf="tracker.state() == 'error'" i18n>Error</span>
index ea24774..ad7b058 100644 (file)
@@ -50,7 +50,8 @@ export class RecentImportsComponent implements OnInit {
     pollTrackers() {
 
         // Report on recent trackers for this workstation and for the
-        // logged in user.  Always show active trackers.
+        // logged in user.  Always show active trackers regardless
+        // of sinceDate.
         const query: any = {
             '-and': [
                 {
@@ -95,6 +96,8 @@ export class RecentImportsComponent implements OnInit {
                             for (let idx = 0; idx < this.trackers.length; idx++) {
                                 const trkr = this.trackers[idx];
                                 if (trkr.id() === sameSes.id()) {
+                                    console.debug(
+                                        `removing tracker ${trkr.id()} from the list`);
                                     this.trackers.splice(idx, 1);
                                     break;
                                 }
@@ -105,6 +108,8 @@ export class RecentImportsComponent implements OnInit {
                         }
                     }
 
+                    console.debug(`adding tracker ${tracker.id()} to list`);
+
                     this.trackers.unshift(tracker);
                     this.fleshTrackerQueue(tracker);
                 }