Commit d3ee8002 authored by Hando Lukats's avatar Hando Lukats
Browse files

Merge branch 'develop' into 'master'

Release: merge 'develop' into 'master' created by Hando Lukats

See merge request teis/public-web-client!650
parents d184bf8a 4ce0aed9
import { Component, OnInit } from '@angular/core';
import { filter, map } from 'rxjs/operators';
import { filter } from 'rxjs/operators';
import { InspectionFacadeService } from '../../inspection-facade.service';
import {combineLatest, Subscription} from 'rxjs';
import { combineLatest, Subscription } from 'rxjs';
import { ConfirmationOptions } from '@teis/modules/modal/confirmation/confirmation.component';
import { ProceduralActDto, ProceduralActStatusId } from '@teis/services/procedural-act/procedural-act.model';
import {ProceduralActInspectionTopicTreeNode} from "@official/features/inspection/services/inspection-models";
import { ProceduralActInspectionTopicTreeNode } from "@official/features/inspection/services/inspection-models";
@Component({
selector: 'teis-inspection-summary',
......@@ -34,6 +34,7 @@ export class InspectionSummaryComponent implements OnInit {
this.facade.proceduralAct,
]).subscribe(([violations, comments, inspectionTopics, proceduralAct]) => {
this.proceduralAct = proceduralAct;
this.isProceduralActCompletable = [ProceduralActStatusId.PENDING, ProceduralActStatusId.IN_PROGRESS].includes(proceduralAct.status.id);
if (violations && comments && inspectionTopics) {
this.inspectionTopics = this.facade.generateInspectionTopicsTree(inspectionTopics, violations, comments);
const notInspected = this.inspectionTopics
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment