This commit is contained in:
crusader
2018-06-04 17:55:47 +09:00
parent ffcee6564e
commit 9990650925
34 changed files with 127 additions and 103 deletions

View File

@@ -1,7 +1,7 @@
import { Component, Input, Output, EventEmitter, AfterContentInit, OnInit, OnDestroy } from '@angular/core';
import { Store, select } from '@ngrx/store';
import { Observable, of, Subscription } from 'rxjs';
import { catchError, exhaustMap, map, tap } from 'rxjs/operators';
import { catchError, exhaustMap, map, tap, take } from 'rxjs/operators';
import { ConfirmationService, Message } from 'primeng/primeng';
import { NoAuthProbe } from '@overflow/commons-typescript/model/noauth';
@@ -53,7 +53,8 @@ export class NoAuthProbeListComponent implements OnInit, OnDestroy {
tap(() => {
this.pending$ = of(false);
}),
).take(1).subscribe();
take(1),
).subscribe();
this.noauthProbeSubscription = this.noAuthProbeSubscriber.observable().pipe(
tap((noAuthProbeNotify: NoAuthProbeNotify) => {
@@ -104,7 +105,8 @@ export class NoAuthProbeListComponent implements OnInit, OnDestroy {
tap(() => {
this.pending$ = of(false);
}),
).take(1).subscribe();
take(1),
).subscribe();
} else {
this.noAuthProbeService.denyNoauthProbe(selected.id)
.pipe(
@@ -121,7 +123,8 @@ export class NoAuthProbeListComponent implements OnInit, OnDestroy {
tap(() => {
this.pending$ = of(false);
}),
).take(1).subscribe();
take(1),
).subscribe();
}
},
reject: () => {