From f7b0a010ac242254fdd7ef329a93d506e9bbe433 Mon Sep 17 00:00:00 2001 From: ievavold <ievavold@wisc.edu> Date: Wed, 3 Jul 2019 14:02:47 -0500 Subject: [PATCH] load audit report from endpoint when clicking 'View' button --- src/app/dars/dars-view/dars-view.component.html | 2 +- src/app/dars/dars-view/dars-view.component.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/dars/dars-view/dars-view.component.html b/src/app/dars/dars-view/dars-view.component.html index f3bb66c..689c350 100644 --- a/src/app/dars/dars-view/dars-view.component.html +++ b/src/app/dars/dars-view/dars-view.component.html @@ -13,7 +13,7 @@ </div> <!-- <ng-container [ngSwitch]="visibleAuditStatus$ | async"> --> - <ng-container [ngSwitch]="'Loaded'"> + <ng-container [ngSwitch]="visibleAuditStatus$ | async"> <ng-container *ngSwitchCase="'Loaded'"> <cse-dars-audit [audit]="audit$ | async"></cse-dars-audit> </ng-container> diff --git a/src/app/dars/dars-view/dars-view.component.ts b/src/app/dars/dars-view/dars-view.component.ts index 5cc995c..d6f023e 100644 --- a/src/app/dars/dars-view/dars-view.component.ts +++ b/src/app/dars/dars-view/dars-view.component.ts @@ -50,7 +50,7 @@ export class DARSViewComponent implements OnInit { this.programMetadata$ = this.store.select(selectors.programMetadata); this.whatIfMetadata$ = this.store.select(selectors.whatIfMetadata); this.visibleAuditStatus$ = this.store.select(selectors.visibleAuditStatus); - // this.audit$ = this.store.select(selectors.visibleAudit); + this.audit$ = this.store.select(selectors.visibleAudit); this.alerts$ = this.store.select(selectors.alerts); } -- GitLab