From: Galen Charlton Date: Mon, 13 Apr 2020 21:36:58 +0000 (-0400) Subject: update summary when contacts are edited X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=2df132c9ce5244caad232e4607819d7080a1f097;p=working%2FEvergreen.git update summary when contacts are edited Signed-off-by: Galen Charlton --- diff --git a/Open-ILS/src/eg2/src/app/staff/acq/provider/acq-provider.component.html b/Open-ILS/src/eg2/src/app/staff/acq/provider/acq-provider.component.html index 4277ce56b1..6a5d0d2fe6 100644 --- a/Open-ILS/src/eg2/src/app/staff/acq/provider/acq-provider.component.html +++ b/Open-ILS/src/eg2/src/app/staff/acq/provider/acq-provider.component.html @@ -45,7 +45,7 @@ - + diff --git a/Open-ILS/src/eg2/src/app/staff/acq/provider/provider-contacts.component.ts b/Open-ILS/src/eg2/src/app/staff/acq/provider/provider-contacts.component.ts index d2fd645b3b..15532061d9 100644 --- a/Open-ILS/src/eg2/src/app/staff/acq/provider/provider-contacts.component.ts +++ b/Open-ILS/src/eg2/src/app/staff/acq/provider/provider-contacts.component.ts @@ -1,4 +1,4 @@ -import {Component, OnInit, AfterViewInit, Input, ViewChild, ChangeDetectorRef} from '@angular/core'; +import {Component, OnInit, AfterViewInit, Input, Output, ViewChild, EventEmitter, ChangeDetectorRef} from '@angular/core'; import {empty, throwError, Observable, from} from 'rxjs'; import {map} from 'rxjs/operators'; import {Router, ActivatedRoute, ParamMap} from '@angular/router'; @@ -36,6 +36,8 @@ export class ProviderContactsComponent implements OnInit, AfterViewInit { @ViewChild('deleteFailedString', { static: true }) deleteFailedString: StringComponent; @ViewChild('deleteSuccessString', { static: true }) deleteSuccessString: StringComponent; + @Output('desireSummarize') summarize: EventEmitter = new EventEmitter(); + cellTextGenerator: GridCellTextGenerator; provider: IdlObject; selectedContact: IdlObject; @@ -71,6 +73,7 @@ export class ProviderContactsComponent implements OnInit, AfterViewInit { console.debug('deleted: ' + val); this.deleteSuccessString.current() .then(str => this.toast.success(str)); + this.summarize.emit(this.provider.id()); }, err => { this.deleteFailedString.current() @@ -144,6 +147,7 @@ export class ProviderContactsComponent implements OnInit, AfterViewInit { this.providerRecord.refreshCurrent().then( () => this.providerContactsGrid.reload() ); + this.summarize.emit(this.provider.id()); resolve(result); }, error => { @@ -180,6 +184,7 @@ export class ProviderContactsComponent implements OnInit, AfterViewInit { this.providerRecord.refreshCurrent().then( () => this.providerContactsGrid.reload() ); + this.summarize.emit(this.provider.id()); }, rejection => { if (!rejection.dismissed) {