From: Bill Erickson Date: Fri, 3 Jul 2020 15:10:09 +0000 (-0400) Subject: LPXXX Angular Volcopy tab->nav; misc X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=4d83ba96c9ddcefd8cb17878935ec26f4e99f6dc;p=working%2FEvergreen.git LPXXX Angular Volcopy tab->nav; misc Signed-off-by: Bill Erickson --- diff --git a/Open-ILS/src/eg2/src/app/staff/cat/volcopy/config.component.html b/Open-ILS/src/eg2/src/app/staff/cat/volcopy/config.component.html index 32d791246a..e9f6e0d28f 100644 --- a/Open-ILS/src/eg2/src/app/staff/cat/volcopy/config.component.html +++ b/Open-ILS/src/eg2/src/app/staff/cat/volcopy/config.component.html @@ -142,7 +142,7 @@
  • 0; } + // Column width (flex:x) for column by column number. flexAt(column: number): number { return this.flexSettings[column]; } diff --git a/Open-ILS/src/eg2/src/app/staff/cat/volcopy/volcopy.component.html b/Open-ILS/src/eg2/src/app/staff/cat/volcopy/volcopy.component.html index 996ebb7ae3..0bd73865ce 100644 --- a/Open-ILS/src/eg2/src/app/staff/cat/volcopy/volcopy.component.html +++ b/Open-ILS/src/eg2/src/app/staff/cat/volcopy/volcopy.component.html @@ -12,33 +12,30 @@
    - - - - -
    - -
    + +

    diff --git a/Open-ILS/src/eg2/src/app/staff/cat/volcopy/volcopy.component.ts b/Open-ILS/src/eg2/src/app/staff/cat/volcopy/volcopy.component.ts index 4c4505fa79..685f0adaf1 100644 --- a/Open-ILS/src/eg2/src/app/staff/cat/volcopy/volcopy.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/cat/volcopy/volcopy.component.ts @@ -12,7 +12,7 @@ import {VolCopyContext} from './volcopy'; import {ProgressInlineComponent} from '@eg/share/dialog/progress-inline.component'; import {AnonCacheService} from '@eg/share/util/anon-cache.service'; import {VolCopyService} from './volcopy.service'; -import {NgbTabset, NgbTabChangeEvent} from '@ng-bootstrap/ng-bootstrap'; +import {NgbNav, NgbNavChangeEvent} from '@ng-bootstrap/ng-bootstrap'; const COPY_FLESH = { flesh: 1, @@ -152,7 +152,7 @@ export class VolCopyComponent implements OnInit { // Changing a tab in the UI means changing the route. // Changing the route ultimately results in changing the tab. - beforeTabChange(evt: NgbTabChangeEvent) { + beforeTabChange(evt: NgbNavChangeEvent) { evt.preventDefault(); this.tab = evt.nextId; this.routeToTab(); @@ -180,6 +180,8 @@ export class VolCopyComponent implements OnInit { console.debug('Edit Session', editSession); this.context.recordId = editSession.record_id; + + // These are currently ignored, since visibility is tab-based this.context.hideVols = editSession.hide_vols === true; this.context.hideCopies = editSession.hide_copies === true;