* rxjs update done
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
|
||||
import {finalize} from 'rxjs/operators';
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import { environment } from "../../../environments/environment";
|
||||
import { Fault } from "../shared/fault";
|
||||
@@ -30,15 +32,15 @@ export class RepairCompleteComponent implements OnInit {
|
||||
|
||||
public confirm() {
|
||||
this.submitInProgress = true;
|
||||
this.faultManager.acknowledgeRepair(this.fault)
|
||||
.finally(() => this.submitInProgress = false)
|
||||
this.faultManager.acknowledgeRepair(this.fault).pipe(
|
||||
finalize(() => this.submitInProgress = false))
|
||||
.subscribe(() => this.router.navigate(['/hiba/feladat-lista']));
|
||||
}
|
||||
|
||||
public reject() {
|
||||
this.submitInProgress = true;
|
||||
this.faultManager.reject(this.fault, 'cnf', this.rejectReason)
|
||||
.finally(() => this.submitInProgress = false)
|
||||
this.faultManager.reject(this.fault, 'cnf', this.rejectReason).pipe(
|
||||
finalize(() => this.submitInProgress = false))
|
||||
.subscribe(() => this.router.navigate(['/hiba/feladat-lista']));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user