-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';
@ViewChild('deleteFailedString', { static: true }) deleteFailedString: StringComponent;
@ViewChild('deleteSuccessString', { static: true }) deleteSuccessString: StringComponent;
+ @Output('desireSummarize') summarize: EventEmitter<number> = new EventEmitter<number>();
+
cellTextGenerator: GridCellTextGenerator;
provider: IdlObject;
selectedContact: IdlObject;
console.debug('deleted: ' + val);
this.deleteSuccessString.current()
.then(str => this.toast.success(str));
+ this.summarize.emit(this.provider.id());
},
err => {
this.deleteFailedString.current()
this.providerRecord.refreshCurrent().then(
() => this.providerContactsGrid.reload()
);
+ this.summarize.emit(this.provider.id());
resolve(result);
},
error => {
this.providerRecord.refreshCurrent().then(
() => this.providerContactsGrid.reload()
);
+ this.summarize.emit(this.provider.id());
},
rejection => {
if (!rejection.dismissed) {